how to check what is first value ? in php code example
Example 1: first item in array php
$firstItem = array_shift($array);
Example 2: array filter php get first object
after array_filter use array_shift to get the first object
$firstItem = array_shift($array);
after array_filter use array_shift to get the first object