is it possible to easily \'rotate\' an array in PHP ?
Like this: 1, 2, 3, 4 -> 2, 3 ,4 ,1
Is there some kind of built-in PHP function for this?
Please use the build in function array_reverse. It is the fastest way to 'rotate' a array in php.
array_reverse
http://php.net/manual/de/function.array-reverse.php