Skip to content
Advertisement

URL Encode To Array Using PHP?

I have these urlencode from Postmant:

JavaScript

How can I convert this URLENCODE in an array in PHP so i will have an array like this :

JavaScript

Advertisement

Answer

parse_str parses string as if it were the query string passed via a URL and sets variables in the current scope (or in the array if result is provided).

https://www.php.net/manual/en/function.parse-str.php

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement