Prado\I18N\core\CultureInfo::searchArray PHP Метод

searchArray() приватный Метод

Search the array for a specific value using a path separated using slash "/" separated path. e.g to find $info['hello']['world'], the path "hello/world" will return the corresponding value.
private searchArray ( $info, $path = '/' ) : mixed
Результат mixed the value array using the path
    private function searchArray($info, $path = '/')
    {
        $index = explode('/', $path);
        $array = $info;
        for ($i = 0, $k = count($index); $i < $k; ++$i) {
            $value = $index[$i];
            if ($i < $k - 1 && isset($array[$value])) {
                $array = $array[$value];
            } else {
                if ($i == $k - 1 && isset($array[$value])) {
                    return $array[$value];
                }
            }
        }
    }