php get first value of associative array without for code example Example: first item in array php $firstItem = array_shift($array);