×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C
Posted by: Den Web
Added: May 25, 2016 4:25 PM
Views: 9
Tags: no tags
  1. ul>
  2.     <?php foreach ($countries as $country):?>
  3.         <li>
  4.             <?=Html::encode("{$country->name} ({$country->code})");?>
  5.             <?=$country->population;?>
  6.         </li>
  7.     <?php endforeach;?>