PDA

View Full Version : Resolved Parameter Type Hinting



xtiano77
09-21-2009, 04:42 PM
Has anyone heard anything new about the parameter type hinting and when, if at all, is PHP going to implement it?

techietim
09-21-2009, 05:11 PM
Currently, PHP only has support for type hinting Arrays and Object. You can implement this for regular data types by using SPL Type classes (http://php.net/manual/en/book.spl-types.php).

There is also an active RFC document here: http://wiki.php.net/rfc/typecheckingstrictandweak