Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/09/2008, 07:44
Avatar de the_web_saint
the_web_saint
 
Fecha de Ingreso: mayo-2008
Ubicación: localhost/tierra/america/panama
Mensajes: 1.229
Antigüedad: 16 años
Puntos: 43
Respuesta: Problema con FOREACH

foreach(expresion_array as $value)
foreach(expresion_array as $key => $value

UN EJEMPLO SENCILLO PODRIA SER:
Cita:

<?php
$arr = array("one", "two", "three");
reset ($arr);
while (list(, $value) = each ($arr)) {
echo "Value: $value<br>\n";
}

foreach ($arr as $value) {
echo "Value: $value<br>\n";
}
?>
__________________
..::The Saint::..
El pesimista se queja del viento; el optimista espera que cambie; el realista ajusta las velas.