Is there a way to the actual variable name that was used to pass to the function (if any)?
Here's an example of what I mean:
[tt]some_function()[/tt] should have printed "variable_name".
---------------------------------------
Here's an example of what I mean:
Code:
$variable_name = "Some value.";
some_function( $variable_name );
function some_function ( $arg )
{
// Here is where I would probably call a function to
// get the actual name of the variable used to set
// $arg when it was called.
$name = get_var_name( $arg );
// Print actual name:
print( $name );
}
[tt]some_function()[/tt] should have printed "variable_name".
---------------------------------------