I have an array like this
$baseArray = array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 );
So i want to make two arrays of range
$arrayOne = from index 5 - 10
$arrayTwo = from index 15 - 20
How can I split the $baseArray to make arrays like that in php ?