note 28727 rejected from language.operators by spic

From: Date: Wed, 22 Jan 2003 16:11:13 +0000
Subject: note 28727 rejected from language.operators by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42594@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.

« previous php.notes (#42594) next »