What docs at php.net? under variable, predefine variable or what? "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message 002601c22cd0$b1995170$1601a8c0@nik">news:002601c22cd0$b1995170$1601a8c0@nik... > 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