Current Location: Home> Function Categories> str_shuffle

str_shuffle

Randomly disrupt a string
Name:str_shuffle
Category:String
Programming Language:php
One-line Description:Randomly disrupts all characters in the string.

Example

Randomly disrupt all characters in the string:

 <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>

Try it yourself