note 28727 added to language.operators

From: Date: Wed, 22 Jan 2003 14:16:50 +0000
Subject: note 28727 added to language.operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-42588@lists.php.net to get a copy of this message
In a php java example I saw the following <?php $salesTaxForm = <<<SalesTaxForm <form action="SalesTaxInterface.php" method="post"> Price (ex. 42.56):<br> <input type="text" name="price" size="15" maxlength="15" value=""><br> Sales Tax rate (ex. 0.06):<br> <input type="text" name="tax" size="15" maxlength="15" value=""><br> <input type="submit" name="submit" value="Calculate!"> </form> SalesTaxForm; ?> What is the <<< operator? I have not seen it before. Until now I have been coding like $salesTaxForm = "form action=\"SalesTax..." you get the idea. This new aproach seems easier. I am surprise no other php tutorial mentioned it. -- http://www.php.net/manual/en/language.operators.php http://master.php.net/manage/user-notes.php?action=edit+28727 http://master.php.net/manage/user-notes.php?action=delete+28727 http://master.php.net/manage/user-notes.php?action=reject+28727

« previous php.notes (#42588) next »