PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is it possible to get information such as line, file, etc. like you would get from an Exception without actually throwing an exception? For instance if I called a function could I find out what line/file that function was called from?
function test()
{
// I want to know what line this function was called from //
}
test();
In the above case it would have been line 7 that the function was called from. Same goes for the file, the function will be stored in a class that's in a separate file so the file constant wouldn't work either.