False¶
false has two usages, as PHP keyword : the opposite of true, as a boolean value and a special type for functions that may return a boolean, but not true.
<?php
function foo($a) : false|A {
if ($a == 1) {
return false;
} else {
return new A();
}
}
?>
Related : Boolean, Type System, True