Thanks to both of you.
Alex, I understand your first example but not this one:
- PHP: Select all
function isTrue($b) {
if($b == true) { return true; } else { return false; }
}
//the following will output hi
if(isTrue(1)) { echo 'hi'; }
Rakuli, thanks for your post. Bookmarked this thread
