Use parse_url function to get domain name and component, parse_url function returned associative array At least one element will be present within the array. Potential keys within this array are: scheme - host, port, user, pass, path, query - after the question mark ? , fragment - after the hashmark #
I am going to show you how to json data in array. Use json_decode (json_decode($jsonData))funcation and By default, objects are converted to standard objects. When use TRUE (json_decode($jsonData, true)), returned objects will be converted into associative arrays.
CodeIgniter Getting Started With a Simple Example. how to remove index.php in your url. By default, the index.php file will be included in your URLs: http://example.com/index.php/controller/function If your Apache server has mod_rewrite enabled, you can easily remove by using a .htaccess file with some simple rules. after remove index.php from url you will see like http://example.com/controller/function