Answers for "if isset shorthand php"

PHP
3

php shorthand if isset

$var = $var ?? "default";
Posted by: Guest on May-29-2020
2

php ternary shorthand

$y = $x ? "true" : "false";
Posted by: Guest on May-25-2020
0

php shorthand if isset post

$name = isset($_POST['submit']) ? $_POST['name'] : null;
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language