I did a var dump of a php object $grid, and there is this property that I need to access:
["wpupg_post_types"]=> array(1) { [0]=> string(21) "a:1:{i:0;s:4:"post";}" } I need to get the word "post" out of that. I tried doing
$posttype = $grid->wpupg_post_types; if (in_array("post", $posttype)) { echo "post"; } But that didn't work. And if I try var_dump($grid->wpupg_post_types); it returns NULL.
Do you know how I can do it?