The parameter may be empty. That is null.
// Nullable type hints – ?
function sum(?string $age){
echo $age;
}
sum(“4.5”);
sum(null);
by dev
The parameter may be empty. That is null.
// Nullable type hints – ?
function sum(?string $age){
echo $age;
}
sum(“4.5”);
sum(null);