1 <?php 2 $a=10; 3 $b=15; 4 echo ($a<$b) ? "111" : "222"; 5 ?> 最终输出: 转载于:https://www.cnblogs.com/secsafe/p/10515374.html