array_merge

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
<?php array_merge(array ...$arrays): array
<?php         $loadedClasses = array_values(

            array_diff(

                get_declared_classes(),

                array_merge(

                    self::$declaredClasses,

                    self::$loadedClasses

                )

            )

        );
<?php             )

        );



        self::$loadedClasses = array_merge($loadedClasses, self::$loadedClasses);



        foreach ($loadedClasses as $loadedClass) {

            $reflection = new ReflectionClass($loadedClass);
<?php             ];

        }



        $loadedClasses = array_merge(self::$loadedClassesByFilename[$suiteClassFile] ?? [], $loadedClasses);



        if (empty($loadedClasses)) {

            return $this->exceptionFor($suiteClassName, $suiteClassFile);
<?php             ...$result->testErroredEvents(),

            ...$result->testFailedEvents(),

            ...$result->testSkippedEvents(),

            ...array_merge(...array_values($result->testConsideredRiskyEvents())),

            ...$result->testMarkedIncompleteEvents(),

        ];
<?php         $phpBin = $phpFinder->find(false);

        assert($phpBin !== false);

        $parameters = [$phpBin];

        $parameters = array_merge($parameters, $phpFinder->findArguments());



        if ($options->passthruPhp !== null) {

            $parameters = array_merge($parameters, $options->passthruPhp);
<?php         $parameters = array_merge($parameters, $phpFinder->findArguments());



        if ($options->passthruPhp !== null) {

            $parameters = array_merge($parameters, $options->passthruPhp);

        }



        $parameters[] = $wrapper;
<?php                 $partialDescriptions[] = $datasetCombinationElement['label'];




                $values = array_merge($values, $datasetCombinationElement['values']);

            }



            $datasetDescriptions[] = implode(' / ', $partialDescriptions);
<?php             $tmp = [];

            foreach ($result as $resultItem) {

                foreach ($values as $value) {

                    $tmp[] = array_merge($resultItem, [$index => $value]);

                }

            }

            $result = $tmp;
<?php         foreach ($array as $key => $value) {

            if (is_array($value) && $value !== []) {

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

            } else {

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

            }
<?php test('collision', function (array $arguments) {

    $output = function () use ($arguments) {

        $process = (new Symfony\Component\Process\Process(

            array_merge(['php', 'bin/pest', 'tests/Fixtures/CollisionTest.php'], $arguments),

            null,

            ['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true', 'COLLISION_TEST' => true]

        ));
<?php     $junitLogFile = tempnam(sys_get_temp_dir(), 'junit');



    $process = new Process(

        array_merge(['php', 'bin/pest', '--log-junit', $junitLogFile], func_get_args()),

        dirname(__DIR__, 2),

        ['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],

    );
<?php $run = function () {

    $process = new Process(

        array_merge(['php', 'bin/pest', '--parallel', '--processes=3'], func_get_args()),

        dirname(__DIR__, 2),

        ['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],

    );