當前位置: 首頁> 函數類別大全> 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>

親自試一試

同類函數
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • 將邏輯順序希伯來文(logical-Hebrew)轉換為視覺順序希伯來文(visual-Hebrew) hebrev

    hebrev

    將邏輯順序希伯來文(logical-He
  • 返回格式化的字符串 sprintf

    sprintf

    返回格式化的字符串
  • 將字符由一種Cyrillic 字符轉換成另一種 convert_cyr_string

    convert_cyr_string

    將字符由一種Cyrillic字符轉換成另
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 將數字格式化成貨幣字符串 money_format

    money_format

    將數字格式化成貨幣字符串
  • 使用一個字符串分割另一個字符串為數組 explode

    explode

    使用一個字符串分割另一個字符串為數組
  • 基於區域設置的字符串比較 strcoll

    strcoll

    基於區域設置的字符串比較