Posted by tony on 04/16/06 11:07
In article <1145134642.131789.187380@j33g2000cwa.googlegroups.com>,
damirz@gmail.com says...
> But you still can try with $HTTP_*_VARS :)
>
> // $nextGlobal = {"GET", "POST", ...}
>
> function showthisarray($nextGlobal) {
> echo($nextGlobal . "\n"); // debug line
> foreach(${'HTTP_' . $nextGlobal . '_VARS'} as $k => $v ) {
> echo($k . " = " . $v . "\n");
> }
> }
>
> I didn't write much PHP lately, so sorry if there is some syntax (or
> any other) error here.
>
>
Worth a try but it produces the same result. It seems you can't pass the
array name in a string at all from what I can see.
tony
[Back to original message]
|