Created
February 4, 2012 21:18
-
-
Save fredericorecsky/1740192 to your computer and use it in GitHub Desktop.
php foreach for "templating"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div class="message"> | |
<h4>Title Template like</h4> | |
<ul> | |
<?php foreach ( $all as $item): ?> | |
<li> | |
<a href="<?php echo $item['url']; ?>"> | |
<?php echo $item['url']; ?> | |
</a> | |
</li> | |
<?php endforeach; ?> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment