Difference between revisions of "PHP/type declaration"
< PHP
Jump to navigation
Jump to search
(Created page with "==Notes== What was once called "type-hinting" in PHP is now, for some reason, called "type declaration". Official pages about type declaration: * [https://www.php.net/manual/...") |
m (Woozle moved page PHP/type-hinting to PHP/type declaration without leaving a redirect: current name) |
(No difference)
|
Latest revision as of 12:31, 8 January 2020
Notes
What was once called "type-hinting" in PHP is now, for some reason, called "type declaration".
Official pages about type declaration:
Note that the "nullable" syntax ("?<type>") only works in PHP 7.1 and up, not in 7.0.