ID: 20448 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Strings related Operating System: Windows 2000 PHP Version: 4.2.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php strings should be concatinated using a '.' ex: $b .= "a"; Previous Comments: ------------------------------------------------------------------------ [2002-11-15 10:45:31] [EMAIL PROTECTED] Hi! I have the following code: $a_data = array("a","b","c"); $s_data = ""; foreach($a_data as $data){ $s_data += $data; } echo $s_data; I was trying to make $s_data contain "abc" but instead I get a 0. It seems that += cube of types returns an int ignoring that the user is trying to concat an string. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20448&edit=1