php if isset shorthand code example
Example 1: php shorthand if isset
$var = $var ?? "default";
Example 2: php shorthand if isset post
$name = isset($_POST['submit']) ? $_POST['name'] : null;
$var = $var ?? "default";
$name = isset($_POST['submit']) ? $_POST['name'] : null;