Using unserialize()


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

Hi there.

I have some data in my database that is serialized.

Did you know?Explore Trending and Topic pages for more stories like this.
e.g.

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) {
print($radio_array[$i]);
}

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

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

help finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

asp authentication problem
Hello all, I want to use the asp authentication (from asp.net configuration) in my web site. there

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

how to query data from website using VC?
I want to query some datum from a website,so I need a program to read data from a .csv file, and ass

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

Send current URL in URL with a $_GET variable problem.
Hello community,

I have created a function that gets the current variable of a page, example:

need help with mail()
hi i want to send an email with attaching pdf file using php. i have the following script but the pr

Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for

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



Play Free Quiz and Win Cash