View Single Post
Old 04-18-2009, 04:42 PM   #18 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
Ahh I see now.

Thanks again Kalle/Tanax...

Since the return is "true".

Then it just returns the number that you are checking right?

so say 5 is a good number, then you get 5 back?

Since PHP is loosely typed, do you have to do "return false" if the number doesn't check out?

It sounds like good practice to do that anyways, but just wondering.
No thats just because the method is meant for an expression, and true/false are both booleans
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
The Following User Says Thank You to Kalle For This Useful Post:
allworknoplay (04-18-2009)