Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. // Example:
  2. // instead of calling array_walk you would do something like the following
  3. $arr = array(1,2,3);
  4. p($arr)->each(function ($x) { echo $x . '<br />';});
  5.  
  6. MyArray(1,2,3)->each(...);
  7. //or
  8. MyArray($some_real_array)->each(...);
Add Comment
Please, Sign In to add comment