Support Joomla!

references:joomla.framework:environment:juri-getanchor

Table of Contents

getAnchor

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

Gets the URI anchor string. The anchor string is everything that occurs after the ‘#’.

Syntax

string getAnchor ()

Examples

Example

$uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819' );
echo "Anchor: " . $uri->getAnchor();

might produce:

Result

Anchor: msg227819
 
references/joomla.framework/environment/juri-getanchor.txt (627 views) · Last modified: 2007/08/15 14:51