====== setAnchor ======
{#JAPI Joomla.Framework Environment JURI::setAnchor #}
Sets the URI anchor string. The URI anchor is everything after the '#'.
===== Syntax =====
void setAnchor ( **$anchor** )
| **$anchor** | string | is a string containing the new URI anchor. |
===== Examples =====
$uri = new JURI( 'http://www.joomla.org?action=help#create' );
echo "Before: " . $uri->toString();
$uri->setAnchor( 'delete' );
echo "After: " . $uri->toString();
might produce:
Before: http://www.joomla.org?action=help#create
After: http://www.joomla.org?action=help#delete