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

Reserved Names

PHP shares several namespaces with the custom code, and has reserved some names for its own usage.

  • Namespaces: the global namespace, also known as \ is reserved for PHP.
  • Keywords: fn, finally, insteadof, null, void, match, …
  • Some classes, constants, functions, interfaces: die, exit,
  • Variables: $GLOBALS, $_GET,…
<?php

    // function void() would not compile
    function theVoid() : bool { }

?>

Documentation

See Also