You can use array_slice or array_splice :
$b = array_slice($a, 0, 10); $c = array_splice($a, 0, 10);
Note that array_slice copies the elements of $a and returns them, while array_splice itself modifies $a and returns only those elements that were removed from $a .
Gumbo
source share