Variable variable. Read the docs.
$v = 'foo';
$foo = 'bar';
echo $$v;
Regards,
Andrey
P.S.
Sometimes {} are used : ${$v}
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> The script was working great before PHP 4.2.x and not after that. So, I
> looked through the code and came upon this variable, "$$var". I have no
> idea what the purpose of the double "$" is for a variable. Anyone know?
>
> --clip--
> $var = "v".$counter."_high_indiv";
> $val3 = $$var;
> --clip
>
> Thanks,
> FletchSOD
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php