| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Environment |
JURI |
getHost |
getHost() |
Never | Work in Progress |
Gets the URI host. This function returns the hostname/ip, or null if no hostname/ip was specified.
string getHost ()
Example
$uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819' ); echo "Host: " . $uri->getHost();
might produce:
Result
Host: forum.joomla.org