I want to get an array composed of the first 4 rows of the original array $arr,
4
$arr
how to do it in PHP?
Check this out.. this should help
From http://docs.php.net/array_slice.