[ Web 관련 ]/php
삼항 연산자
BIZLAB
2021. 9. 1. 15:09
<?
$val = $tmp > 50 ? 'Passed' : $tmp;
$action = (empty($_POST['action'])) ? 'default' : $_POST['action'];
?>