is_array

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php     public function reset(...$properties)

    {

        $properties = count($properties) && is_array($properties[0])

            ? $properties[0]

            : $properties;
<?php     protected function resetExcept(...$properties)

    {

        if (count($properties) && is_array($properties[0])) {

            $properties = $properties[0];

        }
<?php     {

        $wantsASingleValue = is_string($properties);



        $properties = is_array($properties) ? $properties : func_get_args();



        $beforeReset = match (true) {

            empty($properties) => $this->all(),
<?php     {

        $results = [];



        foreach (is_array($properties) ? $properties : func_get_args() as $property) {

            $results[$property] = $this->hasProperty($property) ? $this->getPropertyValue($property) : null;

        }
<?php     public function except($properties)

    {

        $properties = is_array($properties) ? $properties : func_get_args();



        return array_diff_key($this->all(), array_flip($properties));

    }
<?php class BaseUtils

{

    static function isSyntheticTuple($payload) {

        return is_array($payload)

            && count($payload) === 2

            && isset($payload[1]['s']);

    }
<?php             foreach ($middlewares as $finisher) {

                if ($finisher === null) continue;



                $finisher = is_array($finisher) ? last($finisher) : $finisher;



                $result = $finisher($forward, ...$extras);
<?php         $difference=array();



        foreach($array1 as $key => $value) {

            if( is_array($value) ) {

                if( !isset($array2[$key]) || !is_array($array2[$key]) ) {

                    $difference[$key] = $value;

                } else {
<?php         foreach($array1 as $key => $value) {

            if( is_array($value) ) {

                if( !isset($array2[$key]) || !is_array($array2[$key]) ) {

                    $difference[$key] = $value;

                } else {

                    $new_diff = $this->array_diff_assoc_recursive($value, $array2[$key]);
<?php     static function commands($commands)

    {

        $commands = is_array($commands) ? $commands : func_get_args();



        Artisan::starting(fn(Artisan $artisan) => $artisan->resolveCommands($commands));

    }
<?php         $diskConfig = static::diskConfig();



        if (! is_array($diskConfig)) return '';



        $root = $diskConfig['root'] ?? null;
<?php         if (is_null($rules)) return ['required', 'file', 'max:12288'];



        if (is_array($rules)) return $rules;



        return explode('|', $rules);

    }
<?php             return  $value->serializeForLivewireResponse();

        }



        if (is_array($value) && isset(array_values($value)[0])) {

            $isValid = true;



            foreach ($value as $key => $arrayValue) {
<?php             }

        }



        if (is_array($value)) {

            foreach ($value as $key => $item) {

                $value[$key] = $this->dehydratePropertyFromWithFileUploads($item);

            }
<?php             return (string) str($subject)->startsWith(['livewire-file:', 'livewire-files:']);

        }



        if (is_array($subject)) {

            return collect($subject)->contains(function ($value) {

                return static::canUnserialize($value);

            });