PHP - Fonction Str Shuffle
Syntaxe
string str_shuffle ( string $str )
Définition et utilisation
Il est utilisé pour mélanger au hasard une chaîne
Valeurs de retour
Il renvoie la chaîne mélangée
Paramètres
| Sr. Non | Paramètres et description |
|---|---|
| 1 | string Il contient les informations sur la chaîne d'entrée |
Exemple
Essayez l'exemple suivant
<?php
$input = 'abcdefphp_function_str_shuffle';
$shuffled = str_shuffle($input);
echo $shuffled;
?>
felsdirnf_ecu_fhpnt_uafosbpcht
