Categories
PHP

Example on how to use php smarty foreach control structure

<p><!–StartFragment –>                       {foreach from=$advertiser_categories item=category}<br />

</p>

<li><input id=”category_id_{$category}” type=”checkbox” name=”category_id[]” value=”{$category}” />{$category}</li>

<p>                       <br />

{/foreach} Keywords: notes, code</p>

Keywords: notes, code

Leave a Reply

Your email address will not be published. Required fields are marked *