|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-04-02 09:06 UTC] andi
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Hi There, Well it seems that PHP3 doesn't like variables or indirect variables which are numeric. Unfortunately, This was a feature in PHP/FI 2.0.1 that I used extensively. (It was handy for while loops) <? $test = 1; $1 = "testing"; echo $$test; ?> This spits out the result of: Parse error: parse error, expecting `STRING' or `'{'' or `'$'' in /home/httpd/html/rocky/puritytest.php3 on line 3 It gives me an Illegal variable if I would use $$test in an if statement as: <? if ($$test == "testing") { echo ("TRUE"); } ?> All this stuff works in PHP/FI 2.0.1 (with PHP/FI syntax of course)