Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/vendor/iyzico/../nikic/../dflydev/../ramsey/../maennchen/../theseer/../monolog/../hamcrest/../psr/../spatie/flare-client-php/.././flare-client-php/./src
الملفات الموجودة في هذا الـ Path:
.
..
Api.php
Concerns
Context
Contracts
Enums
Flare.php
FlareMiddleware
Frame.php
Glows
Http
Report.php
Solutions
Time
Truncation
View.php
helpers.php

مشاهدة ملف: helpers.php

<?php

if (! function_exists('array_merge_recursive_distinct')) {
    /**
     * @param array<int|string, mixed> $array1
     * @param array<int|string, mixed> $array2
     *
     * @return array<int|string, mixed>
     */
    function array_merge_recursive_distinct(array &$array1, array &$array2): array
    {
        $merged = $array1;
        foreach ($array2 as $key => &$value) {
            if (is_array($value) && isset($merged[$key]) && is_array($merged[$key])) {
                $merged[$key] = array_merge_recursive_distinct($merged[$key], $value);
            } else {
                $merged[$key] = $value;
            }
        }

        return $merged;
    }
}