現在の位置: ホーム> 関数カテゴリ一覧> 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>

自分で試してみてください

類似の関数
  • 文字列の先頭からスペース(または他の文字)を削除します ltrim

    ltrim

    文字列の先頭からスペース(または他の文字
  • 文字列が指定されたサブストリングで終了するかどうかを確認します str_ends_with

    str_ends_with

    文字列が指定されたサブストリングで終了す
  • 一方向の文字列ハッシュ crypt

    crypt

    一方向の文字列ハッシュ
  • HTMLエンティティを対応する文字に変換します html_entity_decode

    html_entity_decode

    HTMLエンティティを対応する文字に変換
  • 2つの文字列間の編集距離を計算します levenshtein

    levenshtein

    2つの文字列間の編集距離を計算します
  • 数字からシングルバイト文字列を生成します chr

    chr

    数字からシングルバイト文字列を生成します
  • ロケール設定に基づく文字列の比較 strcoll

    strcoll

    ロケール設定に基づく文字列の比較
  • バイナリセーフ比較文字列(オフセット位置から指定された長さを比較してください) substr_compare

    substr_compare

    バイナリセーフ比較文字列(オフセット位置