Position actuelle: Accueil> Catégories de fonctions> str_shuffle

str_shuffle

Perturber une chaîne au hasard
Nom:str_shuffle
Catégorie:Chaîne
Langage de programmation:php
Description en une ligne:Perturbe au hasard tous les caractères de la chaîne.

Exemple

Perturbez tous les caractères au hasard dans la chaîne:

 <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">"J&#39;adore Shanghai"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Essayez-le vous-même