From Joomla! Documentation

Revision as of 04:34, 17 September 2008 by Chris Davenport (Talk | contribs)

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

Parses the given URI into the internal object properties. Will return false if a parser error occurred.


boolean parse( $uri )


Argument Data type Description Default
$uri string URI to be represented by the JURI object.


In this example, a URI object is created and is then re-used for a new URI.

$uri = '';
$u =& JURI::getInstance( $uri );
echo 'URI is ' . $u->toString() . "\n";
$u->parse( '' );
echo 'URI is ' . $u->toString() . "\n";

would output

URI is
URI is

Note that the query part is not cleared (as can be seen in this example).

See also