Date: 07/14/00
- Next message: David Roussin: "Re: [PHP-DB] Acces Pb to Oracle DataBase"
- Previous message: John Coggeshall: "[PHP-DB] RE: [PHP] if and while writing to a txt file!"
- In reply to: Michael Howitz: "Re: [PHP-DB] How to..?"
- Next in thread: David Newcomb: "Re: [PHP-DB] How to..?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes, this works perfect!
Thanks
Vojtech
----- Original Message -----
From: Michael Howitz <mac <email protected>>
To: Vojtech Dvorak <vojtech_dvorak <email protected>>
Cc: <php-db <email protected>>
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
>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Roussin: "Re: [PHP-DB] Acces Pb to Oracle DataBase"
- Previous message: John Coggeshall: "[PHP-DB] RE: [PHP] if and while writing to a txt file!"
- In reply to: Michael Howitz: "Re: [PHP-DB] How to..?"
- Next in thread: David Newcomb: "Re: [PHP-DB] How to..?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

