Ti suggerisco di iniziare leggendo il manuale ufficiale:

http://www.php.net/array_slice
http://www.php.net/array_splice