how to get array 1st object in php code example Example: first item in array php $firstItem = array_shift($array);