jobarte

repetition structures mode 2

Jan 24th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.13 KB | None | 0 0
  1. <?php
  2.     /* ... */
  3.    
  4.     foreach($data as $row => $value):
  5. ?>
  6.     <li><?php echo $value['name']; ?></li>
  7. <?
  8.     endforeach;
  9.  
  10.     /* ... */
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment