Unserialize data

QuestionsUnserialize data
Cedric asked 1 year 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 1 year 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

16 + 9 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!