How can I create a php ternary expression containing just if statement without the else part? This is what I tried :
$vn = condition ? expression1 ; And this is what I'm trying to achieve
if(condition) { $vn = expression1; } to
$vn = condition ? expression1 ;