avatar
T. Gabler Susan
0

Codes

1

Answers

Code compilers

Top answers

0
pkp
February-14-2022
// Example usage for: Ternary Operator
$action = $_POST['action'] ?: 'default';

// The above is identical to this if/else statement
if (empty($_POST['action'])) {
    $action = 'default';
} else {
    $action = $_POST['action'];
}