protected static function splitUrlVersion($version)
    {
        $pos = strpos($version, '#');

        // number version or empty version
        if (false !== $pos) {
            $url = substr($version, 0, $pos);
            $version = substr($version, $pos);
        } else {
            $url = $version;
            $version = '#';
        }

        return array($url, $version);
    }
protected static function splitUrlVersion($version)
    {
        $pos = strpos($version, '#');

        // number version or empty version
        if (false !== $pos) {
            $url = substr($version, 0, $pos);
            $version = substr($version, $pos);
        } else {
            $url = $version;
            $version = '#';
        }

        return array($url, $version);
    }
protected static function splitUrlVersion ( $ version ) { $ pos = strpos ( $ version , '#' ) ; // number version or empty version if ( false !== $ pos ) { $ url = substr ( $ version , 0 , $ pos ) ; $ version = substr ( $ version , $ pos ) ; } else { $ url = $ version ; $ version = '#' ; } return array ( $ url , $ version ) ; }
Split the URL and version.

@param string $version The url and version (in the same string)

@return string[] The url and version
Split the URL and version .