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

str_shuffle

隨機打亂一個字符串
名稱:str_shuffle
分類:字符串
所屬語言:php
一句話介紹:隨機地打亂字符串中的所有字符。

實例

隨機地打亂字符串中的所有字符:

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

親自試一試

同類函數
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 將8位字符串轉換為帶引號的可打印字符串 quoted_printable_encode

    quoted_printable_encode

    將8位字符串轉換為帶引號的可打印字符串
  • 解碼一個uuencode 編碼的字符串 convert_uudecode

    convert_uudecode

    解碼一個uuencode編碼的字符串
  • 將字符串轉化為小寫 strtolower

    strtolower

    將字符串轉化為小寫
  • 返回有關字符串中使用的單詞的信息 str_word_count

    str_word_count

    返回有關字符串中使用的單詞的信息
  • 使用uuencode 編碼一個字符串 convert_uuencode

    convert_uuencode

    使用uuencode編碼一個字符串
  • 計算子字符串出現次數 substr_count

    substr_count

    計算子字符串出現次數
  • 使用另一個字符串將字符串填充到某個長度 str_pad

    str_pad

    使用另一個字符串將字符串填充到某個長度