Is there a way to specify getting all but the first element in an array? I generally use foreach() to loop through my arrays.
say array(1,2,3,4,5), i would only want 2, 3, 4 ,5 to show and for it to skip 1.
$arr = array(1,2,3,4,5); $all_but_the_first_element_array = array_slice($arr, 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With