[nycphp-talk] type casting function arguments
Cliff Hirsch
cliff at pinestream.com
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
or
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.
Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060210/56b8ac5d/attachment.html>
More information about the talk
mailing list