Advertisement
Guest User

shiftArrayElementsToTheEnd

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