|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-04-02 01:15 UTC] steve at eyekon dot com
Here is a short script which works fine in PHP 2 but not in 3. I have looked in the FAQ and the bug database, but did not see anything on this particular problems: <? $new = "One"; $$new = "Two"; echo "1: $new<br>2: $$new<br>"; echo "1: $new<br>2: $One<br>"; ?> on PHP3 produces the output: (bad.. I think) 1: One 2: $One 1: One 2: Two and on PHP2 produces: (Good... or was) 1: One 2: Two 1: One 2: Two So... is this a bug or feature? Sorry if it's been covered! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
In PHP 3.0 you can use ${$value}.