This is a simple and quick to describe, it will even save you a bunch of typing.
Before PHP 7
$name = isset($_POST['name']) ? $_POST['name'] : 'Default name';
Now with PHP 7
$name = $_POST['name'] ?? 'Default name';
Soooo much better
Engineering diary
This is a simple and quick to describe, it will even save you a bunch of typing.
$name = isset($_POST['name']) ? $_POST['name'] : 'Default name';
$name = $_POST['name'] ?? 'Default name';
Soooo much better