A couple resources to help :
http://www.php.net/manual/en/language.types.string.php
http://www.zend.com/zend/tut/using-strings.php
Each describes the ability to do :
$var = '<title>blah "blah" blah</title>';
$var = "<title>blah 'blah' blah</title>";
$var = "<title>blah \"blah\" blah</title>";
And using here doc, <<< , like so :
$var = <<<EOD
Example of "string"
spanning multiple 'lines'
using heredoc syntax.
EOD;
Regards,
Philip Olson
http://www.cornado.com/
On Fri, 2 Mar 2001 [EMAIL PROTECTED] wrote:
> Hey,
>
> Wondering if any of you can help me with a problem
>
> im trying to get something like this into $var :
>
> <title>blah "blah" blah</title>
>
> How can I do it if its multi lined
>
> Someone suggested
> content = END <<
> BLAH BLAHC
> BLHAC
> END;
>
> but that doesnt seem to work with quotes
>
> Thanks
> - Peter
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]