I have a url which looks like this:
http://localhost/projectcode12may2014/ampanel/index.php?rel=common_listing&module=company&field%5B%5D=address&adv_operation%5B%5D=c&value%5B%5D=sector&query_type%5B%5D=AND&submit=Submit
In the decoded form, it looks like:
http://localhost/projectcode12may2014/ampanel/index.php?rel=common_listing&module=company&field[]=address&adv_operation[]=c&value[]=sector&query_type[]=AND&submit=Submit
I am trying to parse this URL and get the values of field[]
, adv_operation[]
and query_type[]
as arrays, but I am just getting Array
written in text if I try to parse these fields. I am using parse_url()
and parse_str()
for parsing.
Can anyone suggest a suitable method for this?
Thanks in advance.