RE: [PHP-DB] How to..?

From: Date: Thu, 13 Jul 2000 13:32:27 +0000
Subject: RE: [PHP-DB] How to..?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1105@lists.php.net to get a copy of this message
$myArray=array("one","two","three"); $Temp='"'.implode('";"',$a).'"'; $myArray=explode(";",$d); Any good? BTW: this will only work for arrays of strings which do not contain the semicolon ( ; ) character. Pick another separator if this is a problem _____ ~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, No3 The Embankment, Leeds, LS1 4BJ http://www.easysoft.com <http://www.easysoft.com> The Home of Data Access Middleware "A computer lets you make more mistakes faster than any invention in human history-with the possible exceptions of handguns and tequila." _____ -----Original Message----- From: Vojtech Dvorak [mailto:vojtech_dvorak@servind.cz] Sent: Thursday, July 13, 2000 2:15 PM To: Wesley Choate Cc: php-db@lists.php.net Subject: Re: [PHP-DB] How to..? Well my example is enough, try yourself <?PHP $customer="No One" $customer='"'.$customer.'"' ; echo $customer ?> this will give you: "No One" and that is exactly what I need. But it not answer my question. How can I make this for an array of variables? Vojtech > You need to put the escape character in front of the quotes if you want them > in the string. > > Example > $test = ' /" ' . $var . ' /" /; > > I think this should work. > > Wesley Choate > > > -----Original Message----- > > From: Vojtech Dvorak [SMTP:vojtech_dvorak@servind.cz] > > Sent: Thursday, July 13, 2000 7:58 AM > > To: php-db@lists.php.net > > Subject: [PHP-DB] How to..? > > > > . << File: ATT00001.txt; charset = iso-8859-2 >> > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#1105) next »