php isset and not empty shorthand code example Example: php shorthand if isset post $name = isset($_POST['submit']) ? $_POST['name'] : null;