Skip to content

Instantly share code, notes, and snippets.

Josh Marshall joshbmarshall

Block or report user

Report or block joshbmarshall

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joshbmarshall / gist:6517321
Last active Dec 22, 2015 — forked from Shagshag/gist:5849065
Original gist would not work if a string had a character like : in it. Modified so that it would assign as a number if numeric otherwise assign as a string (escaping double quotes)
View gist:6517321
* do the same than parse_str without max_input_vars limitation
* @param $string array string to parse
* @return array query parsed
function my_parse_str($string) {
$result = array();
// find the pairs "name=value"
You can’t perform that action at this time.