array_merge

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
<?php array_merge(array ...$arrays): array
<?php         $overriddenKeys = array_intersect_key($expectedGlobalVariables['$_SERVER'], $expectedCommonVariables);

        $expectedCommonVariables = array_merge($expectedCommonVariables, $overriddenKeys);

        self::assertArraySubset($expectedCommonVariables, $response['$_SERVER']);



        $keysToRemove = array_keys(array_diff_key($expectedCommonVariables, $overriddenKeys));