public static function buildUrl($mixed)
    {
        if (is_string($mixed)) {
            return $mixed;
        }
        if (!is_array($mixed)) {
            return false;
        }
        $url = '';
        $buf = [];
        $queryDelimiter = '?';
        $mixed[] = '';
        foreach ($mixed as $k => $v) {
            if (is_int($k) || ctype_digit($k)) {
                if (sizeof($buf) > 0) {
                    if (mb_orig_strpos($url, '?') !== false) {
                        $queryDelimiter = '&';
                    }
                    $url .= $queryDelimiter . http_build_query($buf);
                    $queryDelimiter = '';
                }
                $url .= $v;
            } else {
                $buf[$k] = $v;
            }
        }
        return $url;
    }
public static function buildUrl($mixed)
    {
        if (is_string($mixed)) {
            return $mixed;
        }
        if (!is_array($mixed)) {
            return false;
        }
        $url = '';
        $buf = [];
        $queryDelimiter = '?';
        $mixed[] = '';
        foreach ($mixed as $k => $v) {
            if (is_int($k) || ctype_digit($k)) {
                if (sizeof($buf) > 0) {
                    if (mb_orig_strpos($url, '?') !== false) {
                        $queryDelimiter = '&';
                    }
                    $url .= $queryDelimiter . http_build_query($buf);
                    $queryDelimiter = '';
                }
                $url .= $v;
            } else {
                $buf[$k] = $v;
            }
        }
        return $url;
    }
public static function buildUrl ( $ mixed ) { if ( is_string ( $ mixed ) ) { return $ mixed ; } if ( ! is_array ( $ mixed ) ) { return false ; } $ url = '' ; $ buf = [ ] ; $ queryDelimiter = '?' ; $ mixed [ ] = '' ; foreach ( $ mixed as $ k => $ v ) { if ( is_int ( $ k ) || ctype_digit ( $ k ) ) { if ( sizeof ( $ buf ) > 0 ) { if ( mb_orig_strpos ( $ url , '?' ) !== false ) { $ queryDelimiter = '&' ; } $ url .= $ queryDelimiter . http_build_query ( $ buf ) ; $ queryDelimiter = '' ; } $ url .= $ v ; } else { $ buf [ $ k ] = $ v ; } } return $ url ; }
Builds URL from array
@param string $mixed
@call  ( string $str )
@call  ( array $mixed )
@return string|false
Builds URL from array