[ad_1]
It’s ternary. The syntax is var = (true) ? trueValue : falseValue; It’s the same as this:
if ( empty($_POST['code']) ) {
$code = null;
} else {
$code = $_POST['code'];
}
[ad_2]
solved Undefined index (PHP)
[ad_1]
It’s ternary. The syntax is var = (true) ? trueValue : falseValue; It’s the same as this:
if ( empty($_POST['code']) ) {
$code = null;
} else {
$code = $_POST['code'];
}
[ad_2]
solved Undefined index (PHP)