Forum Moderators: coopster
<?
$a=1;
$b="1";
$c=1;
if($a===$b)
{
echo "This will not be printed because although a and b are same but a is integer and b is string";
}
if($a==$b)
{
echo "This will be printed";
}
if($a===$c)
{
echo "<br> This will also be printed, because both a and c are same AND they have same data type";
}
?>
[edited by: Anyango at 4:51 pm (utc) on Dec. 5, 2008]