📜  php 一行 if without else - PHP 代码示例

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

代码示例2
$thisVar != $thatVar ?: doThis();
or
($thisVar == $thatVar) && doThis();
or
if ($thisVar == $thatVar) doThis();