Check the print data is serialized or not in php, follow the below example code.
<?php $str = $story_data[0]->post_description; // store value in a variable $data = @unserialize($str); // check serialized or not if ($data !== false) { echo "ok"; } else { echo "not ok"; } ?>
Hope it will be helpful for you.
Question and answer is powered by AnsPress.io