当前位置: 首页> 函数类别大全> str_rot13

str_rot13

对字符串执行rot13转换
名称:str_rot13
分类:字符串
所属语言:php
一句话介绍:对字符串执行 ROT13 编码。

实例

编码然后解码字符串:

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">str_rot13</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"I love Shanghai"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token string double-quoted-string">"<br>"</span><span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token function">str_rot13</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"V ybir Funatunv"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

亲自试一试

同类函数
  • 输出格式化的字符串 printf

    printf

    输出格式化的字符串
  • 使用一个字符串分割另一个字符串为数组 explode

    explode

    使用一个字符串分割另一个字符串为数组
  • 计算指定字符串在目标字符串中最后一次出现的位置 strrpos

    strrpos

    计算指定字符串在目标字符串中最后一次出现
  • 返回有关字符串中使用的单词的信息 str_word_count

    str_word_count

    返回有关字符串中使用的单词的信息
  • 将字符串转化为小写 strtolower

    strtolower

    将字符串转化为小写
  • 查找字符串的首次出现 strstr

    strstr

    查找字符串的首次出现
  • 返回格式化的字符串 vsprintf

    vsprintf

    返回格式化的字符串
  • 反引用一个使用 addcslashes() 转义的字符串 stripcslashes

    stripcslashes

    反引用一个使用addcslashes()