SHARE
TWEET

Untitled

a guest Oct 14th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $array = [1, 2, 5, 2, 3, 1, 6];
  3.  
  4. function  superArray($array){
  5. while ($array!=0) {
  6.     $arrayPiece = array_shift($array);
  7.     $array[] = $arrayPiece;
  8.     var_dump($array);
  9. }
  10. }
  11. superArray($array);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top