What is the significance of using array_shift() in the given PHP code snippet?
The significance of using array_shift() in the given PHP code snippet is to remove the first element from an array. This function shifts the elements in the array to the left and returns the removed element. In the context of the code snippet, array_shift() is used to remove the first element from the array before processing the remaining elements.
```php
// Given PHP code snippet with array_shift()
$numbers = [1, 2, 3, 4, 5];
$firstNumber = array_shift($numbers);
foreach ($numbers as $number) {
echo $number . " ";
}
```
In this code snippet, array_shift() is used to remove the first element (1) from the $numbers array. The foreach loop then iterates over the remaining elements (2, 3, 4, 5) and echoes them out.