Re: quote problem
| From: | Simon Garner | Date: | Sat, 03 Mar 2001 02:11:44 +0000 |
| Subject: | Re: quote problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42417@lists.php.net to get a copy of this message | ||
From: <PeterOblivion@aol.com>
> Unfortunatly thats not an option since some dumb founded people will be
using
> the script and they dont understand that concept...
>
> any other suggestions?
>
> - Peter
Okay, a heredoc may be better then:
<?php
$title = <<<END
<title>blah "blah" blah</title>
END;
echo $title;
?>
The syntax in your original e-mail was not quite right - heredocs should
work fine with quotes.
http://www.php.net/manual/language.types.string.php
Cheers
Simon Garner