I am not getting what is wrong with this code. It\'s returning \"Found\", which it should not.
$lead = \"418176000000069007\";
$diff = array(\"41817600000006
It's because of one defect in PHP. 418176000000069007
is modified to 2147483647 (integer limit of PHP). That is why you are getting Found
.
try in_array($lead, $diff, true)
If the third parameter strict is set to TRUE then the in_array()
function will also check the types of the needle in the haystack.