📜  三元运算符结构. - 无论代码示例

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

代码示例1
//if the registration number is not specified, notify the customer
$reg_number = (isset($_POST['reg'])) ? $_POST['reg'] : die('Please enter your registration number');