Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is that new? I don't remember it from my php days. Although I'll freely admit those days were a long long time ago so "new" for me may actually be pretty old.


Its been there a long time, I think since PHP 5. (Certainly, it was old in 2008, when I was working on PHP).


You're correct. Type hinting was introduced with PHP 5, which makes it about eight years old.

http://php.net/manual/en/language.oop5.typehinting.php




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: