RE: [PHP] escaping quotes
| From: | Mikey | Date: | Thu, 27 Jan 2005 12:30:43 +0000 |
| Subject: | RE: [PHP] escaping quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207475@lists.php.net to get a copy of this message | ||
> Hi Guys
>
> Really simple question. How do I change the following:
>
> print("value='" . $attributes["messageSubject"] . "'");
>
> to have double quotes around the subject field instead. i.e.:
>
> print("value="" . $attributes["messageSubject"] . """);
>
Simple:
Print ("value=\""{$attributes['messageSubject']}\"");
HTH,
Mikey