Bug #11512 Updated: Parsing of vars inside a string

From: Date: Sat, 16 Jun 2001 16:04:17 +0000
Subject: Bug #11512 Updated: Parsing of vars inside a string
Groups: php.dev 
Request: Send a blank email to php-dev+get-57066@lists.php.net to get a copy of this message
ID: 11512 Updated by: sniper Reported By: luci@conexim.com.au Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: No, _ is allowed in variable names. $varone_foo is thought to be a variable. Previous Comments: --------------------------------------------------------------------------- [2001-06-16 03:16:27] luci@conexim.com.au $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? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11512&edit=2

« previous php.dev (#57066) next »