Thursday, June 23, 2011

Check or get the anchor name

?>
$url = 'http://username:password@hostname/path?arg=value#anchor';
print_r(parse_url($url));
echo parse_url($url, PHP_URL_PATH);
?>

No comments:

Post a Comment