Tema: Duda
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/07/2010, 05:32
Avatar de chulifo
chulifo
 
Fecha de Ingreso: abril-2009
Ubicación: perdido en codigos del PHP, pero aprendo rapido!
Mensajes: 524
Antigüedad: 15 años
Puntos: 18
Respuesta: Duda

Cita:
Iniciado por Labelin Ver Mensaje
Al hacer esto:

Código PHP:
Ver original
  1. <?
  2.  
  3.  
  4. function prueba($variable){
  5.  
  6. for ( $i = 0; $i < 10; $i++){
  7. echo $variable[$i]+80;
  8. }
  9.  
  10. }
  11.  
  12.  
  13. ?>
¿no debería devolver 80 todo el rato?
no, o dependiendo lo que sea $variable

por q si
$variable es = a 1| $variable es = 0
81 80
82 80
83 80
84 80
85 80
86 80
87 80
88 80
89 80
90 80