how to select the first value of an array in php code example Example: first item in array php $firstItem = array_shift($array);