$fruits = array("apple", "banana", "orange"); $first_fruit = array_shift($fruits); echo $first_fruit;