Bug #11512: Parsing of vars inside a string

From: Date: Sat, 16 Jun 2001 07:16:27 +0000
Subject: Bug #11512: Parsing of vars inside a string
Groups: php.dev 
Request: Send a blank email to php-dev+get-56753@lists.php.net to get a copy of this message
From: luci@conexim.com.au Operating system: RH Linux PHP version: 4.0.5 PHP Bug Type: Scripting Engine problem Bug description: Parsing of vars inside a string $varone="blah"; $vartwo="$varone_foo"; => The resulting contents of $vartwo is not "blah_foo" as expected. You can only get the desired result by having $vartwo= $varone . "_foo"; However something like $vartwo="foo_$varone" works as expected => "foo_blah"; Is this a language construct issue perhaps? -- Edit Bug report at: http://bugs.php.net/?id=11512&edit=1

« previous php.dev (#56753) next »