Advertisement
winone1208

PHP pętla foreach

Dec 9th, 2015
135
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. $names = array('Agnieszka','Marta','Kasia');
  3.  
  4. foreach($names as $index => $name) {
  5.     echo $index, '. ', $name, '<br>';
  6. }
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement