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

親自試一試

同類函數
  • 將字符由一種Cyrillic 字符轉換成另一種 convert_cyr_string

    convert_cyr_string

    將字符由一種Cyrillic字符轉換成另
  • 將字符串拆分為較小的塊 chunk_split

    chunk_split

    將字符串拆分為較小的塊
  • 計算文件的sha1哈希值 sha1_file

    sha1_file

    計算文件的sha1哈希值
  • 在字符串中查找一組字符的任何一個字符-返回一個以找到的字符開始的子字符串 strpbrk

    strpbrk

    在字符串中查找一組字符的任何一個字符-返
  • 計算字符串的soundex鍵 soundex

    soundex

    計算字符串的soundex鍵
  • 反轉義一個轉義的字符串 stripslashes

    stripslashes

    反轉義一個轉義的字符串
  • 根據指定格式解析輸入的字符 sscanf

    sscanf

    根據指定格式解析輸入的字符
  • 輸出一個字符串 print

    print

    輸出一個字符串