📜  php multi elseif 语句三元 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.580000             🧑  作者: Mango

代码示例2
$foo = 1;
$bar = ($foo == 1) ? "1" : (($foo == 2)  ? "2" : "other");
echo $bar;