View Full Version : Resolved Parameter Type Hinting
xtiano77
09-21-2009, 05: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, 06: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
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.