I wrote the following php code,
<?php
$k ="123e5";
if(is_numeric($k)){
echo "is number";
}
else{
echo "is not a number";
}
?>
the expected out put is "is not a number" because e is present in the string. But I got the output "is number". why is that happens? and please help me to find the solution.