return all elements in a given array except for the first one in PHP

PHP

🤖 Code Explanation

This code will take an array of 1-4 and return a new array starting from the second element (index 1). The output will be:

Array
(
[0] => 2
[1] => 3
[2] => 4
)

Download SpellBox today