PHP: Select part of array
arrays, php
Solution
You want to use `array_slice($array, 1, 5)`
http://php.net/manual/en/function.array-slice.php
Problem
I have an array: ``` $array = [1,2,3,4,5,6,7,8]; ``` How do I select a subset of the array, to return just [2,3,4,5,6]? I think it should be something along the lines of: ``` $array[2-6] ``` but that's not working