note 97059 deleted from function.file-get-contents by danbrown

From: Date: Tue, 30 Mar 2010 14:30:04 +0000
Subject: note 97059 deleted from function.file-get-contents by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167535@lists.php.net to get a copy of this message
Note Submitter: REMOVE dot joshden at REMOVE dot googles-email dot com ---- To Vlad: You could also use the identical comparison operator (===) which checks for the same data type (e.g. boolean). I'm trying to get in the habit of always using this unless I want implicit data type conversions. http://php.net/manual/en/language.operators.comparison.php <?php $result=file_get_contents("http://www.example.com"); if ($result === false) { // treat error } else { // handle good case } ?>

« previous php.notes (#167535) next »