how to make one element of a array the first element 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