note 39069 modified in function.print by betz
| From: | betz@php.net | Date: | Fri, 05 Nov 2004 10:49:45 +0000 |
| Subject: | note 39069 modified in function.print by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80133@lists.php.net to get a copy of this message | ||
To elaborate on above example adding an
array variable
$text = <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
User = {$_REQUEST['user']}
END;
'print $text;' Will output the string. Very handy for storing HTML.
Or adding {} around the array will allow you to use
above mentioned html blocks in conjuction with forms.
Rene =<>=
--was--
To elaborate on above example adding an
array variable
$text = <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
User = {$_REQUEST['user']}
END;
'print $text;' Will output the string. Very handy for storing HTML.
Or adding {} around the array will allow you to use
above mentioned html blocks in conjuction with forms.
Tip found on
http://justinvincent.com/home/articles.php?articleId=8&page=5
Rene =<>=
http://php.net/manual/en/function.print.php