is_array

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
is_array(mixed $value): bool
           return;

        }



        
$keys is_array($key) ? $key func_get_args();



        
collect($keys)->each(function ($i) {

            if (isset(
$this->computedPropertyCache[$i])) {
        $propertyKeys array_keys($this->getPublicPropertiesDefinedBySubClass());




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

            
$properties $properties[0];

        }
    

    
protected function resetExcept(...$properties)

    {

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

            
$properties $properties[0];

        }
    function __construct()

    {

        
Livewire::listen('action.returned', function ($component$action$returned$id) {

            if (
is_array($returned) || is_numeric($returned) || is_bool($returned) || is_string($returned)) {

                if (! isset(
$this->returnsByIdAndAction[$component->id])) $this->returnsByIdAndAction[$component->id] = [];
            $queryParams request()->query();



            foreach (
$component->getQueryString() ?? [] as $property => $options) {

                if (!
is_array($options)) {

                    
$property $options;

                }
                    continue;

                }



                
$decoded is_array($fromQueryString)

                    ? 
json_decode(json_encode($fromQueryString), true)

                    : 
json_decode($fromQueryStringtrue);
            return  $value->serializeForLivewireResponse();

        }



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

            
$isValid true;



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

        }



        if (
is_array($value)) {

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

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

            }
    protected static function s3Root()

    {

        return static::
isUsingS3() && is_array(static::diskConfig()) && array_key_exists('root', static::diskConfig())

            ? static::
normalizeRelativePath(static::diskConfig()['root'])

            : 
'';

    }
        if (is_null($rules)) return ['required''file''max:12288'];



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



        return 
explode('|'$rules);

    }
        $data data_get($request'memo.data', []);



        
collect($data)->each(function ($value$key) use ($instance) {

            if (
is_array($value)) {

                foreach (
Arr::dot($value$key.'.') as $dottedKey => $value) {

                    static::
rehashProperty($dottedKey$value$instance);

                }
    public static function hash($value)

    {

        if (! 
is_null($value) && ! is_string($value) && ! is_numeric($value) && ! is_bool($value)) {

            if (
is_array($value)) {

                return 
json_encode($value);

            }

            
$value method_exists($value'__toString')
        array_walk($publicData, function ($value$key) use ($instance$response) {

            if (


                
is_bool($value) || is_null($value) || is_array($value) || is_numeric($value) || is_string($value)

            ) {

                
data_set($response'memo.data.'.$key$value);

            } else if (
$value instanceof Wireable && version_compare(PHP_VERSION'7.4''>=')) {
    public static function setDirtyData($model$data) {

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

            if (
is_array($value) && !empty($value)) {

                
$existingData data_get($model$key);



                if (
is_array($existingData)) {
            if (is_array($value) && !empty($value)) {

                
$existingData data_get($model$key);



                if (
is_array($existingData)) {

                    
$updatedData = static::setDirtyData([], data_get($data$key));

                } else {

                    
$updatedData = static::setDirtyData($existingDatadata_get($data$key));