R
R
Rasul Gitinov2016-01-18 01:13:39
PHP
Rasul Gitinov, 2016-01-18 01:13:39

What is the correct way to use the unserialize function?

I have a table in the database in which the values ​​are stored in this form:
b18f60ae35354002be74d9d9a2dbd709.png
The array which is located there is serialized. I need to output it as a normal array.
Describe exactly and clearly how to do it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
entermix, 2016-01-18
@entermix

fetch value from database and do unserialize

S
Sergey, 2016-01-18
Protko @Fesor

1) get the string
2) deserialize into an array via unserialize
3) ???
4) profit
images?q=tbn:ANd9GcQBCqwyKJ3ubE3LQRh3bJa

A
Alexey Skobkin, 2016-01-19
@skobkin

Learn to formulate questions. Think about them. When you can formulate the question correctly, you will understand how to find the information you need without trying to get people to write the code for you.
Your question is called "How to use the unserialize function correctly?", and then you want to know how to get data from the database. This is called "porridge in the head." You need to get rid of it and everything will be fine, and it will be easier to understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question