What is the simplified version of this code:
$v=$POST[$n]==''?$i:$POST[$n];
I don't understand the double '=' and the '?' 😕
Could someone help?
that is shorthand for
if ($_POST['n'] == '') { $v = $i; } else { $v = $_POST['n']; }
see this page for explanation: http://php.net/ternary#language.operators.comparison.ternary
Cool 🙂 Thanks!