Ver Mensaje Individual
  #12 (permalink)  
Antiguo 19/05/2012, 15:09
Avatar de enlinea777
enlinea777
 
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 16 años
Puntos: 127
Respuesta: Problema al obtener caracteres de un string

pues esta es la respuesta http://creaelicita.cl/ayuda/r535

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