Re: How to..?
| From: | Michael Howitz | Date: | Thu, 13 Jul 2000 13:26:50 +0000 |
| Subject: | Re: How to..? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1106@lists.php.net to get a copy of this message | ||
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