The head function returns the first element in the given array:
$array = [100200300];

$first head($array);
    protected function flattenValue($value)

    {

        return 
is_array($value) ? head(Arr::flatten($value)) : $value;

    }
        $column $this->wrap($having['column']);



        
$min $this->parameter(head($having['values']));



        
$max $this->parameter(last($having['values']));
            }



            if (
str_starts_with($value'--env')) {

                return 
head(array_slice(explode('='$value), 1));

            }

        }

    }
    protected function middlewareNames($middleware)

    {

        
$stripped head(explode(':'$middleware));



        yield 
$stripped;
    protected function mergeRulesForAttribute($results$attribute$rules)

    {

        
$merge head($this->explodeRules([$rules]));



        
$results[$attribute] = array_merge(

            isset(
$results[$attribute]) ? $this->explodeExplicitRule($results[$attribute], $attribute) : [], $merge
    public function testHead()

    {

        
$array = ['a''b''c'];

        
$this->assertSame('a'head($array));

    }



    public function 
testLast()