FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Why type hint when you can type cast
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Why type hint when you can type cast [message #182361] Wed, 31 July 2013 11:12 Go to previous message
Bruce Lee is currently offline  Bruce Lee
Messages: 2
Registered: July 2013
Karma:
Junior Member
Hi

Apart from the fatal error generated by type hinting when not passed values as array or object as described on the php manual, is there any thing else that will make me use type hinting over type casting?


Thanks
[Message index]
 
Read Message
Read Message
Previous Topic: Education Path to become a PHP developer using free online courses
Next Topic: Reading a file on same server
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 04 18:46:27 GMT 2024

Total time taken to generate the page: 0.04169 seconds