The php code is returing true in both cases show below. I dont know why?
<?php
$cid = 150;
if ($cid=100)
{
echo $cid;
echo "<BR>";
}
if ($cid==100)
{
echo "NEW";
echo "<BR>";
echo $cid;
echo "<BR>";
}
?>
The output is:
100
NEW
100
Why is the if condition not working?