Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
array_merge(array ...$arrays): array
    {

        
$credentials $this->basicCredentials($this->getRequest(), $field);



        if (! 
$this->once(array_merge($credentials$extraConditions))) {

            return 
$this->failedBasicResponse();

        }

    }
            return false;

        }



        return 
$this->attempt(array_merge(

            
$this->basicCredentials($request$field), $extraConditions

        
));

    }
    {

        if (
method_exists($event'broadcastWith') &&

            ! 
is_null($payload $event->broadcastWith())) {

            return 
array_merge($payload, ['socket' => data_get($event'socket')]);

        }



        
$payload = [];
            return [

                
'pending_jobs' => $batch->pending_jobs,

                
'failed_jobs' => $batch->failed_jobs 1,

                
'failed_job_ids' => json_encode(array_values(array_unique(array_merge(json_decode($batch->failed_job_idstrue), [$jobId])))),

            ];

        });
    public function map(array $map)

    {

        
$this->handlers array_merge($this->handlers$map);



        return 
$this;

    }
    public function appendToChain($job)

    {

        
$this->chained array_merge($this->chained, [$this->serializeJob($job)]);



        return 
$this;

    }
        $now Carbon::now();



        return 
array_merge(collect(array_flip($keys))->map(function () {


        })->
all(), collect($response['Responses'][$this->table])->mapWithKeys(function ($response) use ($now) {

            if (
$this->isExpired($response$now)) {

                
$value null;

            } else {

                
$value $this->unserialize(

                    
$response[$this->valueAttribute]['S'] ??

                    
$response[$this->valueAttribute]['N'] ??

                    
null

                
);

            }



            return [
Str::replaceFirst($this->prefix''$response[$this->keyAttribute]['S']) => $value];

        })->
all());

    }
            $results[] = $values;

        }



        return 
array_merge([], ...$results);

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

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

                
$results array_merge($results, static::dot($value$prepend.$key.'.'));

            } else {

                
$results[$prepend.$key] = $value;

            }
    public function merge($items)

    {

        return new static(
array_merge($this->items$this->getArrayableItems($items)));

    }
            return $this->getArrayableItems($items);

        }, 
func_get_args());



        
$params array_merge([function () {

            return new static(
func_get_args());

        }, 
$this->items], $arrayableItems);



        return new static(
array_map(...$params));

    }
        $result $initial;



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

            
$result call_user_func_array($callbackarray_merge($result, [$value$key]));



            if (! 
is_array($result)) {

                throw new 
UnexpectedValueException(sprintf(
    protected function createInputFromArguments(array $arguments)

    {

        return 
tap(new ArrayInput(array_merge($this->context(), $arguments)), function ($input) {

            if (
$input->getParameterOption('--no-interaction')) {

                
$input->setInteractive(false);

            }
        $name = static::name($expression);



        if (
preg_match_all('/\{\s*(.*?)\s*\}/'$expression$matches) && count($matches[1])) {

            return 
array_merge([$name], static::parameters($matches[1]));

        }



        return [
$name, [], []];
            Mutators\EnsureRelativePaths::class,

        ]);



        
$this->renderView('line'array_merge(static::$styles[$style], [

            
'marginTop' => ($this->output instanceof NewLineAware && $this->output->newLineWritten()) ? 1,

            
'content' => $string,

        ]), 
$verbosity);

    }

}