Jump to content

Unserialize some data


oscttech900

Recommended Posts

I am pulling some data from a table that look like this:

 

a:2:{i:10;a:2:{s:8:"shipping";s:28:"STANDARD 5 - 7 Business Days";s:5:"rates";a:1:{i:40;d:4.75;}}i:26;a:2:{s:8:"shipping";s:13:"Anxiety Wrap ";s:5:"rates";a:1:{i:20;d:6.75;}}}

 

I want to have a function that will return me an array with just the 2 pieces of informaiton I need from this string... in this case the 2 shipping rates after the d:  - so 4.75 and 6.75

 

Any ideas?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/116056-unserialize-some-data/
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.