Re: How to..?

From: Date: Fri, 14 Jul 2000 09:06:45 +0000
Subject: Re: How to..?
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-1142@lists.php.net to get a copy of this message
Yes, this works perfect! Thanks Vojtech ----- Original Message ----- From: Michael Howitz <mac@gmx.net> To: Vojtech Dvorak <vojtech_dvorak@servind.cz> Cc: <php-db@lists.php.net> Sent: Thursday, July 13, 2000 3:26 PM Subject: Re: [PHP-DB] How to..? > Vojtech Dvorak wrote: > > > > 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 > > > > > hi, > > what about a function: > > function addquotes($text) { > return '"'.$text.'"'; > } > > usage: > <?PHP > $customer="No One" > echo addquotes($customer); > ?> > > > cu > mac > >

« previous php.db (#1142) next »