Re: string concatenation from array

From: Date: Tue, 12 Aug 2003 20:06:49 +0000
Subject: Re: string concatenation from array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159328@lists.php.net to get a copy of this message
Thanks a bunch. Problem solved. "Micah Montoy" <montmica@isu.edu> wrote in message news:20030812195816.83301.qmail@pb1.pair.com... > 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 > >

« previous php.general (#159328) next »