PHPで関数呼び出しの列を取得できるようにしたいです。
ではdebug_backtrace()
、関数呼び出しの行は取得できますが、列は取得できません。
私がやりたいことは、同じ行の 2 つの関数呼び出しを区別できるようにすることです。
例えば:
function test() {
//do something with the line/column of the called function.
}
test(); test(); //How to know whether it is the first or second test() which is called?