Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2011, 14:49
perucho_88
 
Fecha de Ingreso: abril-2011
Mensajes: 12
Antigüedad: 13 años
Puntos: 0
Fatal error: Cannot redeclare explodei()

Hola que tal... tengo otro problema les dejo el error y el codigo... ojala puedan darme una mano...

Fatal error: Cannot redeclare explodei() (previously declared in C:\AppServ\www\smileenergy\inc\config.php:45) in C:\AppServ\www\smileenergy\inc\config.php on line 59


Código:
45function explodei($separator, $string, $limit = false )
46{
   $len = strlen($separator);
   for ( $i = 0; ; $i++ )
   {
       if ( ($pos = stripos( $string, $separator )) === false || ($limit !== false && $i > $limit - 2 ) )
       {
           $result[$i] = $string;
           break;
       }
       $result[$i] = substr( $string, 0, $pos );
       $string = substr( $string, $pos + $len );
   }
58  return $result;
59}