//mixed array_pop ( array &arr ) $names = array("Timmy", "Bobby", "Sam", "Tammy", "Joe"); $firstname = array_pop($names);?>