I need to get a sub array from a big array (i dont know the array, it comes from the database), like this:
$array = array(0=>\'Name 1\',1=>\'Name 2\',2=
$new_array = array_slice( $array, 0, 3);
you could also try array_chunk() to separate your array into small ones
array_chunk()