Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/07/2011, 15:33
Avatar de Physlet
Physlet
 
Fecha de Ingreso: octubre-2010
Ubicación: Panamá
Mensajes: 48
Antigüedad: 13 años, 6 meses
Puntos: 9
Respuesta: Generar un código de usuario

Para hacer lo que quieres podías usar el substr sin repetirlo tantas veces. Algo como:

$numero = strtoupper(substr($usuario, 0, 3)).date("ziys");