Bug #12278 Updated: variable variable inside a string
| From: | sniper@php.net | Date: | Fri, 27 Jul 2001 01:57:22 +0000 |
| Subject: | Bug #12278 Updated: variable variable inside a string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61153@lists.php.net to get a copy of this message | ||
ID: 12278
Updated by: sniper
Reported By: dardo@uol.com.ar
Old Status: Assigned
Status: Analyzed
Old Bug Type: Output Control
Bug Type: Scripting Engine problem
Operating System: independant
PHP Version: 4.0.6
Previous Comments:
------------------------------------------------------------------------
[2001-07-20 08:15:32] dardo@uol.com.ar
<?php
$foo1="nonsense";
$foo2="foo1";
print "$$foo2";
?>
THIS programs output $foo2, (IS THIS OK??)
<?php
$foo1="nonsense";
$foo2="foo1";
print "{$$foo2}";
?>
this program outputs nonsense (THIS IS CORRECT)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12278&edit=1