We have link which we get for example by AJAX, and we want to its query values and insert them into $_MY_BOX array:
1 2 | $query_string = parse_url($link, PHP_URL_QUERY); parse_str($query_string, $_MY_BOX); |
If we have for example such link: https://mysite.com/?aa=1&bb=2&cc=3, so print_r($_MY_BOX) will give us:
1 2 3 4 5 | ( [aa] => 1 [bb] => 2 [cc] => 3 ) |
