note 95869 deleted from function.echo by googleguy
| From: | googleguy@php.net | Date: | Wed, 22 Jan 2014 20:53:29 +0000 |
| Subject: | note 95869 deleted from function.echo by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198309@lists.php.net to get a copy of this message | ||
Note Submitter: gbarros at yahoo-inc dot com
----
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 :)