Bug #12278: variable variable inside a string

From: Date: Fri, 20 Jul 2001 12:15:32 +0000
Subject: Bug #12278: variable variable inside a string
Groups: php.dev 
Request: Send a blank email to php-dev+get-60379@lists.php.net to get a copy of this message
From: dardo@uol.com.ar Operating system: independant PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: variable variable inside a string <?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 bug report at: http://bugs.php.net/?id=12278&edit=1

« previous php.dev (#60379) next »