get the first element of many array php code example Example: first item in array php $firstItem = array_shift($array);