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

親自試一試

同類函數
  • 查找字符串首次出現的位置(不區分大小寫) stripos

    stripos

    查找字符串首次出現的位置(不區分大小寫)
  • 翻譯字符或替換子字符串-轉換指定字符 strtr

    strtr

    翻譯字符或替換子字符串-轉換指定字符
  • 獲取數字格式信息 localeconv

    localeconv

    獲取數字格式信息
  • 使用“自然順序”算法進行字符串比較 strnatcmp

    strnatcmp

    使用“自然順序”算法進行字符串比較
  • 輸出一個或多個字符串 echo

    echo

    輸出一個或多個字符串
  • 單向字符串散列 crypt

    crypt

    單向字符串散列
  • 重複一個字符串 str_repeat

    str_repeat

    重複一個字符串
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式