Convert stdClass object to array Posted on September 26, 2017 by Chandan Sharma in CodeIgniter, PHP#Convert stdClass object to array foreach ($object as $value){ $array[] = $value->post_id; }Share this:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma