Hello I am trying to process and read/parse data from a string in PHP. The string when var dumped looks like this
string(266) "{ "address": { "address_line1": "2391 US HIGHWAY 22 W", "address_line2": "", "address_city": "UNION", "address_state": "NJ", "address_zip": "07083-8517", "address_country": "US", "object": "address" } }"
I would like to be able to store
address_line1
, address_line2
, address_city
, address_state
, address_zip
and address_country
into variables so I can manipulate them as I please.
How do I go about doing this.
Thank you for your time.