Advertisement
Guest User

shiftArrayElementsToTheEnd

a guest
Jul 9th, 2010
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function shiftArrayElementsToTheEnd(Array $array, $count){
  2.     for(;$count>0;$count--){
  3.         echo "\nDebug: ", join(', ', $array); # debug output
  4.        array_push($array, array_shift($array)); # opearation
  5.    }
  6.     return $array;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement