×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to use the parse_url function to parse an URL?


PHP - How to use the parse_url function to parse an URL?

<?php 

$myDomain = parse_url("http://www.netartmedia.net/php.html#examples"); 

echo "Domain: " . $myDomain["host"] . "<br>"; 
echo "Query String: " . $myDomain["query"] . "<br>"; 
echo "Anchor: " . $myDomain["fragment"] . "<br>"; 

?>

Category: PHP

 
<< Go back