Unserialize data

QuestionsUnserialize data
Cedric asked 6 years ago

Hello,
I have a table where one field as the data serialized with php.
Is it possible to unserialized the data before displaying it?

Thanks,
Cedric

1 Answers
Abu Ghufran answered 6 years ago

Hi,

You can make it display un-serialized, e.g.:
If field name is 'col1' then set property:

$col["on_data_display"] = array("display_unserialized","");

function display_unserialized($data)
{
return unserialize($data["col1"]);

}

Your Answer

5 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?