RE: [PHP] escaping quotes
| From: | Ford, Mike | Date: | Thu, 27 Jan 2005 12:58:05 +0000 |
| Subject: | RE: [PHP] escaping quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-207474@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 27 January 2005 12:14, Giles wrote:
> 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"] . """);
print('value="' . $attributes["messageSubject"] . '"');
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211