top | item 31013833

(no title)

jrwr | 3 years 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

discuss

order

No comments yet.