Skip to content

Instantly share code, notes, and snippets.

@typeon
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save typeon/e140859b836c82223f49 to your computer and use it in GitHub Desktop.

Select an option

Save typeon/e140859b836c82223f49 to your computer and use it in GitHub Desktop.
php type hinting
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