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

親自試一試

同類函數
  • 將數字格式化成貨幣字符串 money_format

    money_format

    將數字格式化成貨幣字符串
  • 單向字符串散列 crypt

    crypt

    單向字符串散列
  • 檢查字符串是否以給定的子字符串結尾 str_ends_with

    str_ends_with

    檢查字符串是否以給定的子字符串結尾
  • 反轉一個字符串 strrev

    strrev

    反轉一個字符串
  • 返回格式化的字符串 vsprintf

    vsprintf

    返回格式化的字符串
  • 返回使用htmlspecialchars() 和htmlentities() 後的轉換錶 get_html_translation_table

    get_html_translation_table

    返回使用htmlspecialchars
  • 將字符串轉化為小寫 strtolower

    strtolower

    將字符串轉化為小寫
  • 轉換字符串第一個字節為0-255 之間的值 ord

    ord

    轉換字符串第一個字節為0-255之間的值