Actions

JURI/getScheme

From Joomla! Documentation

Revision as of 11:34, 9 August 2012 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the scheme part of the URI represented by the JURI object.

Syntax

string getScheme()

Example

$uri = 'http://fredbloggs:itsasecret@www.example.com:8080/path/to/Joomla/index.php?task=view&id=32#anchorthis';
$u =& JURI::getInstance( $uri );
echo 'Scheme is ' . $u->getScheme();

would output

Scheme is http

See also