parse_url -- Parse a URL and return its components
Syntax
array parse_url ( string url )
This function returns an associative array containing any of the
various components of the URL that are present. If one of them is
missing, no entry will be created for it. The components are :
scheme - e.g. http
host
port
user
pass
path
query - after the question mark ?
fragment - after the hashmark #
This function is not meant to validate
the given URL, it only breaks it up into the above listed parts. Partial
URLs are also accepted, parse_url() tries its best to
parse them correctly.
Note:
This function doesn't work with relative URLs.
parse url php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php parse url syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.