Hi all.
I need to test to see if the data in a var is a number and the string lenght but my code is not producing the results I expect. I must be doing this wrong. My code should look to see it $Estimated is a number and the lenght is only 4 characters.
Can anyone see where I am going wrong.
$edt = trim($Estimated);
if(ctype_digit($edt) && strlen($Estimated == 4))
{
// do somethig
}