php object(stdclass) to array code example Example: php object(stdclass) to array $array = json_decode(json_encode($object), true);