note 74095 deleted from language.operators.comparison by danbrown

From: Date: Thu, 18 Jun 2009 14:05:32 +0000
Subject: note 74095 deleted from language.operators.comparison by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157068@lists.php.net to get a copy of this message
Note Submitter: mjmendoza at krixware dot tk ---- I often see questions with == and === perhaps this snippet should do. <?php $x="1"; //a _string_ with numeric value 1 $y=1; //an _integer_ with value 1 echo "test == :".($x == $y); //equates to TRUE echo "<br>test === :".($x === $y); //equates to FALSE ?>

« previous php.notes (#157068) next »