Re: PHP5 Type Hints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Curt Zirzow wrote:
* Thus wrote Gerard Samuel:

Im unable to find documentation on this.
Does one exist?  If so can you point me to it.


I dont think anything officially exist in the manual, yet. The type
hint can only be an Object, and will cause a fatal error if not the
paticular object isn't passed.


Thanks. I could have sworn, I saw something somewhere, that led me to believe that arguments can be casted. I.E. function foo(int $foo) { // $foo will be casted as an integer }

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux