Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/03/2011, 15:02
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 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