---
title: "swapchars | open.mp"
description: "交换变量中的字节顺序。"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/swapchars
language: zh-CN
---

# swapchars

## 描述

交换变量中的字节顺序。

| 参数名称 | 说明 |
| --- | --- |
| c | 需要进行字节交换的变量值 |

## 返回值

返回字节顺序交换后的变量值（最低有效字节变为最高有效字节）
