i18n::array_extend PHP Method

array_extend() private static method

Something of a sane version of PHP's array_merge
private static array_extend ( $a, $b )
    private static function array_extend($a, $b)
    {
        foreach ($b as $key => $value) {
            if (!array_key_exists($key, $a)) {
                $a[$key] = $value;
            }
        }
    }