00001 <?php
00016 function main()
00017 {
00018 if(""==false)
00019 echo "Empty string is equal to false<br/>\n";
00020 else
00021 echo "Empty string is not equal to false<br/>\n";
00022
00023
00024 if(""===false)
00025 echo "Empty string is exactly equal to false<br/>\n";
00026 else
00027 echo "Empty string is not exactly equal to false<br/>\n";
00028
00029
00030 if(0=="0")
00031 echo "Numeric zero is equal to string zero<br/>\n";
00032 else
00033 echo "Numeric zero is not equal to string zero<br/>\n";
00034
00035
00036 if(0==="0")
00037 echo "Numeric zero is exactly equal to string zero<br/>\n";
00038 else
00039 echo "Numeric zero is not exactly equal to string zero<br/>\n";
00040
00041
00042 if(1==1 && 2==2)
00043 echo "1 is equal to 1 and 2 is equal to 2<br/>\n";
00044 else
00045 echo "Either 1 is not equal to 1 or 2 is not equal to 2<br/>\n";
00046
00047
00048
00049 if(1!=1 || 2!=2)
00050 echo "Either 1 is not equal to 1 or 2 is not equal to 2<br/>\n";
00051 else
00052 echo "1 is equal to 1 and 2 is equal to 2<br/>\n";
00053
00054 }
00055
00056
00057 main();
00058
00059 ?>