note 106596 rejected from language.basic-syntax.phpmode by thiago

From: Date: Mon, 28 Nov 2011 11:42:27 +0000
Subject: note 106596 rejected from language.basic-syntax.phpmode by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184713@lists.php.net to get a copy of this message
Note Submitter: dmsherrill at gmail dot com ---- After viewing this example above, I'm a bit confused. ............................................ "eksith" wrote: <?php $html =<<<HTML <?xml version="1.0" encoding="UTF-8" ?> ... The rest of your HTML... And a PHP {$variable} here and an array {$arr['value']} there. HTML; // End of heredoc ............................................. I love this and want to use it, but from what I've read, heredocs treats a string as a double quoted string. So, is having double quotes within a syntax is allowed? Hope so.

« previous php.notes (#184713) next »