Méthode | Description | |
---|---|---|
getHostname ( string $url ) : string | false | ||
getPath ( string $url ) : string | ||
getRootDomain ( string $url ) : false | string | Extracts lower-case ASCII root domain from URL if it is available and valid, returns false otherwise. |
Méthode | Description | |
---|---|---|
isHostInSuffixList ( false | string $host ) : boolean | ||
parseUrl ( string $url, integer $component ) : string | false | Checks an URL for validity, and punycode encode the returned component. |
public static getHostname ( string $url ) : string | false | ||
$url | string | |
Résultat | string | false |
public static getRootDomain ( string $url ) : false | string | ||
$url | string | |
Résultat | false | string |