I've looked at debug_backtrace but so far it doesn't do what I need it to do.
I need to know whether the function I'm calling was 'called' or 'echo-ed'. Like this:
function hello() {
//blah blah
}
echo hello(); //echo-ed
hello(); //'called'
But the function would do different things if it was 'called' over 'echo-ed'.
How would I do that?