[nycphp-talk] type casting function arguments

Cliff Hirsch cliff at
Fri Feb 10 14:49:52 EST 2006

Is there any way to typecast a function argument like:
public function Partytime(int $argument)         // this actually
expects an object of class int
public function Partytime( (int)$argument)      // this barfs
sure would be nice when my next line is:
if ($argument ===...    which I really like over == for some stange
reason -- keeps me honest.
You get the idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the talk mailing list