Using unserialize()

Posted on 16th Feb 2014 07:03 pm by admin

Hi there.

I have some data in my database that is serialized.


a:2:{i:0;s:9:"Test";i:1;s:4:"Another Test";}

I'm unsure how to use unserialize to convert it into a string in the format:

Test, Another Test

Currently I have:

Code: $radio_array = unserialize($radio);
foreach ($radio_array as $i => $value) {

But that throws errors. Any help appreciated, thanks

No comments posted yet

Your Answer:

Login to answer
198 Like 9 Dislike
Previous forums Next forums
Other forums

Pandora Vintage Forbici pendente di fascino 791.113 online [eb6f] - €28.83 : Professionali outlet Pandora,
[b][url=]all'ingrosso di gioielli pandora[/url][/b] [b][url=http://ww

Patek Philippe часы Великобритании , Дешевые Patek Philippe часы
[b][url=]часы[/url][/b] [b][url=http://www.luxuryofwatche

Adding to an Int row in db
Hi, i have a database which houses all of the users of my site. One of the columns is for points whi

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

???? Barbour ??????
[b][url=]дамы Barbour куртки[/url][/b] [b][url=http://www.barbo

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS