Local Storage, web applications can store data locally in the user browse. Local storage large amounts of data can be stored locally, Local Storage, use like multiple language and currency etc. Now i am showing how to set and get Local Storage data.
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.