PHP 中的 str_rot13() 函数
phpprogrammingserver side programming更新于 2025/9/16 21:52:17
str_rot13() 函数用于对字符串执行 ROT13 转换。
语法
str_rot13(str)
参数
str − 待编码的字符串
返回值
str_rot13() 函数返回已编码字符串的 ROT13 版本。
示例
下面是一个例子 −
<?php
echo str_rot13("Demo text");
?>
输出
以下是输出 −
Qrzb grkg

