I am passing a variable to a function and I want the function to know the name of the array passed. It's for a simple debug logging function.
Example:
function dump_array($var) {
...
echo "Array <name of $var> is empty<br>";
...
}
and the call:
dump_array($_POST);
Would result in:
Array $_POST is empty.
Anyone got an idea?