Support Joomla!

references:joomla.framework:environment:juri-getusername

Table of Contents

getUsername

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Environment Class JURI Method getUsername Reference getUsername() Never Work in Progress

Gets the URI username. This function returns the username, or null if no username was specified.

Syntax

string getUsername ()

Examples

Example

$uri = new JURI( 'http://user:secret@www.joomla.org?action=help#create' );
echo "Username: " . $uri->getUsername();

might produce:

Result

Username: user
 
references/joomla.framework/environment/juri-getusername.txt (1019 views) · Last modified: 2007/08/15 14:51