I am currently working with the PayPals API and want to convert one of its responses from a name-value pair to an array.
So far, I have used urldecode() to decode the answer to the following:
RECEIVERBUSINESS=foo@bar.com & RECEIVEREMAIL=another@email.com &MOREINFO=lots more info`
I would like to have the following:
RECEIVERBUSINESS => ' foo@bar.com ' RECEIVEREMAIL => ' another@email.com ' MOREINFO => 'lots more info'
I'm just not quite sure how to get there!
source share