/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// name: evCreateRandomString // version: v0.1 // description: genera un string alfanumérico de X caracteres function evCreateRandomString( $numChars = 6 ) { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; $i = 0; $string = '' ; while ( $i <= $numChars ) { $pass = $pass . $tmp; $i++; } return $pass; }