Displaying Portions of Raw HTML Code Page 6
Another new feature to PHP4 is a new syntax is
modeled after Perl's "here printing." It is possible to display complete
portions of HTML code by flanking them with either a print or echo
instruction and an end label. Unlike Perl, the operator used is not a
double less than sign (<<), but a triple less than sign
(<<<) so as to distinguish it from the binary shift operator. For
example:
|
<?php
print <<< mylabel <h4>PHP's New
Features</h4> <p>$valstr <br>Tested on PHP version
$version</p> echo
"<hr><br>/n"; |
