From: <[EMAIL PROTECTED]>

> 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
> 


You need to escape the quote characters by prefixing them with a backslash.


<?php
    $title = "<title>blah \"blah\" blah</title>";
?>


Cheers

Simon Garner


-- 
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]

Reply via email to