Re: [PHP] array values format

2003-02-20 Thread janet
In a message dated 2/19/2003 8:44:53 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >I have a problem here in array manipulations. I need an output like this >from the queried data : > >"data1","data2","data3" > >Any idea how? thanx in advance $string = '"'.implode('","',$testarray).'"'; J

Re: [PHP] array values format

2003-02-19 Thread Michael P. Carel
thanks it working now - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 2:40 PM Subject: Re: [PHP] array values format > On Thursday 20 February 2003 13:36, Michael P. Carel wrote: > >

Re: [PHP] array values format

2003-02-19 Thread Jason Wong
On Thursday 20 February 2003 13:36, Michael P. Carel wrote: > as per testing it doesnt delete the last comma, i'm doing something like > this: > > for($i=0;$i { > $pictures .="\"./archive/bannerimages/".$bid[$i]."/".$images[$i]."\"".","; > } > preg_replace("/,$/","",$pictures); > echo $pictures; >

Re: [PHP] array values format

2003-02-19 Thread Michael P. Carel
as per testing it doesnt delete the last comma, i'm doing something like this: for($i=0;$i To: <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 12:42 PM Subject: Re: [PHP] array values format > Hi Michael, > > Something like this should work: > > for($i=0; $

[PHP] array values format

2003-02-19 Thread Michael P. Carel
hi to all I have a problem here in array manipulations. I need an output like this from the queried data : "data1","data2","data3" Any idea how? thanx in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php