How can I use the array_shift function to remove the first element from an array in PHP? Example code: - Biz Tech

How can I use the array_shift function to remove the first element from an array in PHP? Example code:

Listen
$fruits = array("apple", "banana", "orange");

$first_fruit = array_shift($fruits);

echo $first_fruit;