I want to be able to get the column of a function call in PHP.
With debug_backtrace()
, I can get the line of the function call, but I cannot get the column.
What I want to do is to be able to distinguish two function calls on the same line.
For instance:
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?