Last active
August 29, 2015 14:19
-
-
Save typeon/e140859b836c82223f49 to your computer and use it in GitHub Desktop.
php type hinting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP relies on the proper documentation of functions for developers to know what | |
| arguments a function can take. To simplify this PHP 5 introduced type hinting, which | |
| allows a function to specify the type of arguments it accepts. Allowed types include | |
| classes, interfaces and the pseudo types array and callable. | |
| *ClassName, interfaceName, array, Callable* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment