Skip to content

Instantly share code, notes, and snippets.

View Tiriel's full-sized avatar

Benjamin Zaslavsky Tiriel

View GitHub Profile
@Tiriel
Tiriel / proper_parse_str.php
Last active August 2, 2016 09:27
Custom function for URL parsing
<?php
/**
* Custom version of parse_str function to avoid overriding of multiple definitions in query string
*
* @param $string
* @return array
*/
function proper_parse_str($string)
{
$array = array();