View Single Post
Old Nov 2nd, 2004, 12:05 PM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally posted by scorpiosage@Nov 2 2004, 05:48 AM
In looking at the fwrite function given, I am seeing === like so
if (fwrite($handle, $somecontent) === FALSE) {
    echo "Cannot write to file ($filename)";
    exit;
  }
is that a typo, or does that have a meaning, or am I just confusing a nonissue?
lol

Thanks again for all everyone's help
Mike
In PHP, === means "is equal to and of the same type". So comparing it to FALSE checks to see if the value the variable is holding is FALSE, and not 0.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote