Type hinting with PHP
PHP has supported type hinting for parameter functions from version 5.0 for objects and from version 5.1 for arrays. Type hinting means the function specifies what type the parameter must be and if it is not of the correct type an error will occur. Type hinting is not supported for other types, e.g. for strings and integers.

| Hits: | 21 | Last Updated: | 2010-04-26 |
VIEW ALL
PHP Tutorials