How To Parse URL In PHP

In this tutorial I will tell you how to parse URL in PHP, Normally we are create an custom function to explode URL into different arrays.PHP have built in PHP function parse_url () to parse URL.

You can also check other tutorial of string,

Below are simple example to parse URL

Select Code
1
2
3
$nexUrl = 'https://graph.facebook.com/xxxxxx/feed?limit=400&until=1353532418';
$parseURL = parse_url($nexUrl);
print_r($parseURL);
Result: