lets say i have a function that takes an array as one of its arguments:
function show_array ($array)
{
if ($array == $_POST) {echo 'the function argument is POST<br>'; print_r ($_POST);}
if ($array == $_SESSION) {echo 'the function argument is SESSION<br>'; print_r ($_SESSION);}
}
show_array ($_POST);
this does not work as expected. it seems that you cannot use the array name in conjuction with comparison operators. how can you access the name of the array in argument? i tried func_get_arg() but i have the same problem.