Cool Ajax - Web Development Tutorial Blog

Tag : php useful url function

PHP function to extract components from an URL

You want to extract the protocol, domain name, path, or other significant component of a URL. Use the parse_url() function to automatically split the URL into its constituent parts. The parse_url() function is one of most useful URL manipulation function in PHP. Ita takes a parameter of a Uniform Resource Locator (URL), and splitting it into its individual components. The [...]