Actions

Difference between revisions of "JURI/getFragment"

From Joomla! Documentation

(New page: Returns the fragment part of the URI represented by the JURI object. ===Syntax=== string getFragment() ===Example=== <source lang="php"> $uri = 'http://fredbloggs:itsasecret@www.example....)
 
m (See also: re-categorisation)
 
Line 15: Line 15:
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#getFragment JURI->getFragment on api.joomla.org]
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#getFragment JURI->getFragment on api.joomla.org]
 
* [[JURI/setFragment|JURI->setFragment]]
 
* [[JURI/setFragment|JURI->setFragment]]
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JURI]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Latest revision as of 10:32, 9 August 2012

Returns the fragment part of the URI represented by the JURI object.

Syntax

string getFragment()

Example

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

would output

Fragment is anchorthis

See also