I am using array_splice to remove 0th and 1st index of an array and I want to remove last index too.
How to do it?
array_splice($arr, 0, 2);
Here is my array -
Array ( [code] => 1 [name] => Abc [On] => 15619 [OP] => 15886 [Vac] => 31505 [Target] => 50702 [Co] => 62.14 )
array_slice(array_values($arr), 2, count($arr)-3);