Micah,

The & sign in PHP (to the best of my knowledge) does not concatenate.

Use a . instead. See below.

$wresult = "";

foreach ($search_string as $word_result){
        $wresult .= $word_result;
}

That should work for you.



Jonathan Pitcher


On Tuesday, August 12, 2003, at 02:58 PM, Micah Montoy wrote:


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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to