Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

False

false has two usages, as a PHP keyword. It is the opposite of true, as a boolean value and a special type for functions that may return a boolean, but not true.

<?php

    function trumpet($a) : false|Elephpant {
        if ($a == 1) {
            return false;
        } else {
            return new Elephpant();
        }
    }

?>

Documentation

See Also