Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/06/2009, 09:51
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Convertir entero en array

Con solo hacer un casting a una cadena de texto te serviría:
Código php:
Ver original
  1. $int = 50019000;
  2. $string = (string) $int;
  3. $array = split("[0-9]", $string);
  4. var_dump($array);

Saludos.