Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
<?php array_merge(array ...$arrays): array
<?php                 require $collectableFile;


            }

            $this->collectedRoutes = array_merge(

                $this->collectedRoutes,

                Getter::create()

                    ->prefixDelimiter($this->delimiter)

                    ->get(

                        Route::getRoutes(),

                        $collectableRoute['data']

                    )

            );

        }



        $this->willCollect = false;
<?php             'handler' => $routeData['handler'],

            'method' => $routeData['method'],

            'middleware' => array_merge_recursive($parentData['middleware'] ?? [], $routeData['middleware']),

            'fields' => array_merge($parentData['fields'] ?? [], $routeData['fields']),

            'parameterTypes' => array_merge_recursive($parentData['parameterTypes'] ?? [], $routeData['parameterTypes']),

        ];

    }
<?php     public function where($parameter, ?string $regExp = null): RouteInterface

    {

        if (is_array($parameter)) {

            $this->parameterTypes['regExp'] = array_merge($this->parameterTypes['regExp'], $parameter);

        } else {

            if (null === $regExp) {

                throw new ValueError('Second parameter must not be null when string is passed to first parameter.');