📜  turnery 表达式 php 代码示例

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

代码示例1
(condition) ? /* value to return if condition is true */ 
            : /* value to return if condition is false */ ;
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];