Get sub array in PHP

by 0

array_slice()
$subArray = array_slice($arr,0,4);

Leave a Reply