RE: [PHP] Variable variables question?

2003-06-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Douglas Douglas [mailto:[EMAIL PROTECTED] > Sent: 14 June 2003 00:57 > > Thanks for the explanation, but I think this is a > different case, isn't? I'm not trying to do this > ${$_POST}, I'm trying to make this string $_POST. Then why not just make it: $v

RE: [PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Thanks for the answer Mike. Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. And I have another question. Why does this code work? '; print_r($_POST); echo ''; $method = 'POST'; $data = ${'_'.$met

RE: [PHP] Variable variables question?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas To: [EMAIL PROTECTED] To get the superglobal array ($_GET or $_POST), I try to build these strings '_'.$method. I'm sure this part works, PHP builds the string _GET or _POST according to the $method parameter. I use ${'_'.$method} to get the content