php shorthand if isset post

44

$name = isset($_POST['submit']) ? $_POST['name'] : null;
$var = $var ?? "default";

Comments

Submit
0 Comments