Posted by milahu on 11/19/56 11:45
tony@tony.com schrieb:
> i'm trying to itterate through an array that contains the names of the
> global arrays
>
> eg:
>
> $myarray = array("\$_GET", "\$_SERVER"); and so on
>
> The problem Im having is calling a function with
>
> myfunction($myarray[0]);
>
> doesnt seem to pass the array name in a manner I can then use.
>
> I'm sure I'm missing something simple here can anyonehelp please ?
>
> tony
Try this one:
$arrs = array('_GET', '_POST');
foreach($arrs as $arrnam)
print_r($$arrnam);
Navigation:
[Reply to this message]
|