That's fine as a test, but you never want to get a variable name from a
URL in practice.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Richard Heyes wrote:
>> $varname = "\$_SERVER['REMOTE_ADDR']";
>> $varvalue = $$varname;
>>     
>
> That's wrong. Offhand you'll end up printing a string. I tried this:
>
> <?php
>     $a   = 365;
>     $b   = 366;
>
>     $var = $_GET['var'];
>
>     echo $$var;
> ?>
>
> And it was fine.
>
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to