Re: Trying to understand what is happening in this code
| From: | Marc Guay | Date: | Fri, 11 Oct 2013 15:12:44 +0000 |
| Subject: | Re: Trying to understand what is happening in this code | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322275@lists.php.net to get a copy of this message | ||
Here's another way to write a loop that might make it more clear
what's happening...
<ul>
<?php foreach ($weekdays as $day) : ?>
<li>
<?php echo $day; ?>
</li>
<?php endforeach;?>
</ul>