Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/08/2006, 13:45
Avatar de DarkXNightmare
DarkXNightmare
 
Fecha de Ingreso: agosto-2005
Ubicación: Somewhere Over The Rainbo
Mensajes: 181
Antigüedad: 18 años, 8 meses
Puntos: 0
Ahora, si lo que quieres es hacerlo automaticamente, usa esta función:

Código PHP:
function cut_string($string_text$int_quantity)
{
    
$array = array();
    for (
$i 0$i strlen($string_text); $i $i $int_quantity)
    {
        
$array[] = substr($string_text$i$int_quantity);
    }
    return 
$array;
}
print_r(cut_string("0001000200030004"4));
/*
imprime
Array
(
    [0] => 0001
    [1] => 0002
    [2] => 0003
    [3] => 0004
)
*/ 
Espero que te guste... ;D.

Atte... DarkXNightmare ;D.
__________________
Cambiando mi Web... sean pacientes :P