當前位置: 首頁> 函數類別大全> strrev

strrev

反轉一個字符串
名稱:strrev
分類:字符串
所屬語言:php
一句話介紹:反轉字符串。

實例

反轉字符串"I love Shanghai!":

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">strrev</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 delimiter important">?></span></span>

親自試一試

同類函數
  • 返回格式化的字符串 sprintf

    sprintf

    返回格式化的字符串
  • 計算給定文件的md5哈希值 md5_file

    md5_file

    計算給定文件的md5哈希值
  • 從字符串中刪除HTML和PHP標記 strip_tags

    strip_tags

    從字符串中刪除HTML和PHP標記
  • 根據指定格式解析輸入的字符 sscanf

    sscanf

    根據指定格式解析輸入的字符
  • 使用uuencode 編碼一個字符串 convert_uuencode

    convert_uuencode

    使用uuencode編碼一個字符串
  • 計算指定字符串在目標字符串中最後一次出現的位置(不區分大小寫) strripos

    strripos

    計算指定字符串在目標字符串中最後一次出現
  • 使用“自然順序”算法進行字符串比較 strnatcmp

    strnatcmp

    使用“自然順序”算法進行字符串比較
  • 重複一個字符串 str_repeat

    str_repeat

    重複一個字符串