Table of Contents

getPassword

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

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

Syntax

string getPassword ()

Examples

Example

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

might produce:

Result

Password: secret