Answers for "ternary operator structure."

0

ternary operator structure.

//if the registration number is not specified, notify the customer
$reg_number = (isset($_POST['reg'])) ? $_POST['reg'] : die('Please enter your registration number');
Posted by: Guest on January-05-2022

Browse Popular Code Answers by Language