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