Results 1 to 2 of 2

Thread: Parameter Type Hinting

  1. #1
    Join Date
    Sep 2008
    Location
    Midland, Texas
    Posts
    52
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Question Parameter Type Hinting

    Has anyone heard anything new about the parameter type hinting and when, if at all, is PHP going to implement it?
    Last edited by xtiano77; 09-24-2009 at 12:40 PM.

  2. #2
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    Currently, PHP only has support for type hinting Arrays and Object. You can implement this for regular data types by using SPL Type classes.

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •