Jump to content

Parse string into variables


clay1

Recommended Posts

I need to take a string and separate it into a set of variables or an associative array

 

&Accepted=1&Accepted_msg=Warning%20dialer%5Fsource%5Fid%20is%200&error=0&Error_desc=

 

The fields are delimited by &

 

I'd like to get that to be something like:

 

$accepted = 1

$accepted_message = "warning dialer source..'

$error_desc =

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/195063-parse-string-into-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.