string concatenation from array
| From: | Micah Montoy | Date: | Tue, 12 Aug 2003 19:58:21 +0000 |
| Subject: | string concatenation from array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159322@lists.php.net to get a copy of this message | ||
I'm having a bit of difficulty getting a string to attach to itself from an
array. Here is the bit of code I'm working on.
$wresult = "";
foreach ($search_string as $word_result){
$wresult = $wresult & " " & $word_result;
}
echo ("$wresult");
Anyone see why when I run through each part of the array, it won't attach
the next string and so on?
thanks