<html> <head> <!--set title--> <title> test equal </title> </head> <!--show page--> <body> <?php //add code in this place $str = "true"; $bOk = true; if ($bOk == $str) { echo "str == bOk <br>/n"; } else { echo "str != bOk <br>/n"; } if ($bOk === $str) { echo "str === bOk <br>/n"; } else { echo "str !== bOk <br>/n"; } if ("true" == "false") { echo "true == false <br>/n"; } else { echo "true != false <br>/n"; } $strCmp = "string"; if ($strCmp > 0) { echo "strCmp > 0 <br>/n"; } else if (0 == $strCmp) { echo "strCmp == 0 <br>/n"; } else if ($strCmp < 0) { echo "strCmp < 0 <br>/n"; } else { echo "strCmp and 0 can't compare! <br>/n"; } $nVal = 0 + "202asdf"; echo "nVal = $nVal <br>/n"; ?> </body> </html>