![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/03/2011, 15:02
|
Colaborador | | Fecha de Ingreso: octubre-2009 Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 15 años, 3 meses Puntos: 334 | |
Respuesta: if/else con : y ? (condicion) ? true : false;
echo 1 == 1 ? 'son iguales' : 'son diferentes';
se llaman operaciones ternarias. http://cl.php.net/ternary#language.o...arison.ternary
saludos |