Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2012, 13:57
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: comprobar siguiente valor en foreach

Yo iría por hacer un ciclo con while:
Código PHP:
Ver original
  1. while (($value = current($array)) !== false) {
  2.         // haces cosas con $value
  3.         $value = next($array);
  4.         if (empty($value)) { // haces algo si esta vacio
  5.         }
  6. }