Answers for "differencew between == and === in php"

PHP
1

differencew between == and === in php

==  It will return true if both value are same. 

=== It will return true if both value and their datatypes are matched. 

Ex.  

<?php 

if(1.0 == 1) 

{ 

    echo 'true'; 

} 

else{ 

    echo 'false'; 

} 

?>
Posted by: Guest on September-03-2021

Code answers related to "differencew between == and === in php"

Browse Popular Code Answers by Language