Ford, Mike wrote:
    function func(int $i)

for strict type checking, and

    function func((int)$i)

for coercion aka casting (although now I've seen it written down I'm not
so sure! ;).

Just want to throw my 2 cents in.

Big +1 for this syntax

I think with the addition of this and __cast() for objects, PHP's OO will be very flexible and can build great Frameworks, ORM's, etc.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to