note 95869 added to function.echo
| From: | gbarros at yahoo-inc dot com | Date: | Tue, 26 Jan 2010 22:10:45 +0000 |
| Subject: | note 95869 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165335@lists.php.net to get a copy of this message | ||
just banged my head on this missing bits on the manual.
When using the <<< method, the array keys does not require any kind of quotes.
<?php
foreach ( $data as $i ){
echo <<< END
<tr>
<td>$i[date]</td>
<td>$i[name]</td>
</tr>
END;
}
?>
Let's hope you don't have any <?php echo
$klingonships['th\'bl][ath']?> kind of array :)
----
Server IP: 69.147.83.197
Probable Submitter: 64.215.196.10
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/95869
Del: integrated -- https://master.php.net/note/delete/95869/integrated
Del: useless -- https://master.php.net/note/delete/95869/useless
Del: bad code -- https://master.php.net/note/delete/95869/bad+code
Del: spam -- https://master.php.net/note/delete/95869/spam
Del: non-english -- https://master.php.net/note/delete/95869/non-english
Del: in docs -- https://master.php.net/note/delete/95869/in+docs
Del: other reasons-- https://master.php.net/note/delete/95869
Reject -- https://master.php.net/note/reject/95869
Search -- https://master.php.net/manage/user-notes.php