![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/02/2012, 15:30
|
![Avatar de OsSk4R](http://static.forosdelweb.com/customavatars/avatar155524_8.gif) | | | Fecha de Ingreso: octubre-2006 Ubicación: $this->home
Mensajes: 824
Antigüedad: 18 años, 3 meses Puntos: 74 | |
Respuesta: Comprobar valores de varias variables ¿Necesitas comprobar si dos valores son distintos?
Código PHP:
Ver original$a = 40; $b = 'otro'; if ($a != $b) { echo 'distinto'; } else { echo 'no distinto'; }
http://php.net/manual/es/language.op...comparison.php
Saludos, |