How can I be getting the line number on which the method was executed for example?
class.php
Class Example
{
function methodExample()
{
echo __LINE__;
}
}
index.php
include "class.php";
Example::methodExample(); // 5
The use of _LINE_
does not do what I want, since it displays the line where it was inserted and not where the method was called.