I have an array containing 20 keys.
$arr = array(
"1" = "one",
"2" = "two",
.
.
.
"20" = "twenty"
);
Now I want to ignore ten keys first, and I want this output:
print_r($output);
here is one solution. using array_shift ($ arr) , but this solution is not optimized because I have to use 10 times for this function. something like that:
$arr = array_shift($arr);
$arr = array_shift($arr);
.
.
.
$arr = array_shift($arr);
is there a better solution?
user4920811
source
share