|
|
|
|
|
by jrwr
1526 days ago
|
|
The biggest feature of PHP for new people to the language is in-lining You can do stupid stuff like <table>
<?php foreach($array as $row){ ?>
<tr><td><?php echo $row[0];?></td></tr>
<?php } ?> Meaning you can just inlay PHP in your raw HTML as you please, this example will reprint the <tr> and <td> for every key in $array |
|