CodeIgniter / PHPConvert stdClass object to array September 26, 2017 Chandan SharmaComment on Convert stdClass object to array#Convert stdClass object to array foreach ($object as $value){ $array[] = $value->post_id; }Share this:FacebookX