can somebody explain me heredoc and newdoc syntax in a few words please ? i know it's so basic but since i have no idea ... it's hard 4 me. :embarasse it'd be extremely helpful to understand this...
hi Kylexy here is the syntax for heredoc <?php $str = <<<DEMO This is a demo message with heredoc. DEMO; echo $str; ?>
Hello, Nowdocs are to single-quoted strings what heredocs are to double-quoted strings. A nowdoc is specified similarly to a heredoc, but no parsing is done inside a nowdoc. Here’s a link I’m sharing check this for more details” http://lindensgarden.blogspot.in/2009/12/php-notes-different-between-heredoc-and.html “