[nycphp-talk] type casting function arguments

Cliff Hirsch cliff at
Fri Feb 10 15:09:06 EST 2006

So is it best to abandon ifs with === and !==? I think they are great
for validation and flag checking (like setting a variable to a result
set or Boolean false). But I might have gotten ahead of myself using
them too liberally, which is now a bit worrisome and creating a few
problems...and overtime.

No.  What you're trying to do is type hinting, which only works for the
compound types: classes (as of 5) and arrays (as of 5.1). See:

More information about the talk mailing list