//This works best $array = json_decode(json_encode($object), true);
//It is verry easy : just cast object to array $array = (array)$object;