references:joomla.framework:environment:juri-setpasswordTable of Contents
setPassword
Sets the URI password. Syntaxvoid setPassword ( $pass )
ExamplesExample $uri = new JURI( 'http://www.joomla.org?action=help#create' ); echo "Before: " . $uri->toString(); $uri->setUsername( 'user' ); $uri->setPassword( 'secret' ); echo "After: " . $uri->toString(); might produce: Result Before: http://www.joomla.org?action=help#create After: http://user:secret@www.joomla.org?action=help#create |


