|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-12-04 06:35 UTC] joker at telenetz dot 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 ? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Not a bug. '_' is the part of the identifier. Use "{$ab}_" if you want it not to be a part of the identifier.