<?php
class TestClass {
function test_method($str) {
debug_print_backtrace();
}
}
function test_func($param1, $param2) {
$obj = new TestClass();
$obj->test_method("ABC");
}
test_func("ZZZ","XXX");
?>
●実行結果
#0 TestClass->test_method(ABC) called at [C:\php\develop\t1.php:10]
#1 test_func(ZZZ, XXX) called at [C:\php\develop\t1.php:13]
|