<? $patron = utf8_decode('1234567890abcdefghijklmnñopqrstuvwxyz'); for ( $i=0; $i<15; $i++) { $key .= $patron[rand(0,35)]; } echo $key;?>