I need command that will display error if var is not number
I tried few examples but nothing seems to work, here is what I tried, one worked but it messed up my previous code, if its 0 display other msg, now when its 0 it displays like its string idk why so I removed it
if ($var !== int);
if ($var (!is_number));
if((int)(string)$var == $var);