Actions

JURI/getUser

From Joomla! Documentation

Returns the user name part of the URI represented by the JURI object.

Syntax

string getUser()

Example

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

would output

User is fredbloggs

See also