Find what functions were called (from a variable's perspective)
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-03-08T03:00:09Z
Indexed on
2010/03/08
3:02 UTC
Read the original article
Hit count: 446
Hey all,
I'm trying to figure out how to know what has been done to a variable.
Here's an example:
function a($hello) {
$out .= strtoupper(ucwords(strtolower($hello)));
return $out;
}
echo function_trace('$hello') // returns array(strtoupper,ucwords,strtolower)
Thanks! Matt
© Stack Overflow or respective owner