lundi 11 janvier 2016

How to random special char using php?

How to random special char using php ?

I'm looking for the better more than my code.

<?php
$a=array("#","@","^","|","-");
$random_keys=array_rand($a,3);
echo $a[$random_keys[0]];
?>

I want to get the best random special char using php.

please advice me.




Aucun commentaire:

Enregistrer un commentaire