Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2012, 15:30
Avatar de OsSk4R
OsSk4R
 
Fecha de Ingreso: octubre-2006
Ubicación: $this->home
Mensajes: 824
Antigüedad: 17 años, 6 meses
Puntos: 74
Respuesta: Comprobar valores de varias variables

¿Necesitas comprobar si dos valores son distintos?

Código PHP:
Ver original
  1. $a = 40;
  2. $b = 'otro';
  3.  
  4. if ($a != $b)
  5. {
  6. echo 'distinto';
  7. } else {
  8. echo 'no distinto';
  9. }
http://php.net/manual/es/language.op...comparison.php

Saludos,