SHARE
TWEET

Untitled

a guest May 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $array = array('foo','bar',baz');
  3. foreach($array as $x) echo $x;
  4. ?>
  5.  
  6. vs
  7.  
  8. <?php
  9. foreach(array('foo','bar',baz') as $x) echo $x
  10. ?>
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Top