PHP 4.0 Bug #8092 Updated: variables in strings not working

From: Date: Mon, 04 Dec 2000 11:39:45 +0000
Subject: PHP 4.0 Bug #8092 Updated: variables in strings not working
Groups: php.dev 
Request: Send a blank email to php-dev+get-39943@lists.php.net to get a copy of this message
ID: 8092 Updated by: stas Reported By: joker@telenetz.com Status: Closed Bug Type: Strings related Assigned To: Comments: Not a bug. '_' is the part of the identifier. Use "{$ab}_" if you want it not to be a part of the identifier. Previous Comments: --------------------------------------------------------------------------- [2000-12-04 06:35:08] joker@telenetz.com hi, the following script does not work: <?php $ab = "N6"; $test = "TESTSTRING"; $str = "test_$ab_$test"; echo "$str<BR>"; exit(0); ?> output: test_TESTSTRING if i write: $str = "test_".$ab."_$test"; the script works... is this a bug or just an undocumented feature ? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8092

« previous php.dev (#39943) next »