Re: string concatenation from array

From: Date: Wed, 13 Aug 2003 06:32:41 +0000
Subject: Re: string concatenation from array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159398@lists.php.net to get a copy of this message
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; }
what about: $wresult = join ( " ", $search_string ); Ciao, Fabio

« previous php.general (#159398) next »