if(!is_numeric($num1) || !is_numeric($num2)){
echo 'Please enter the numerical type'; }
is_numeric() function is used to detect whether a variable is a number or a numeric string.
If either $num1 or $num2 is not a number or a numeric string, print a prompt message telling you that you need to enter a numeric type.
is_numeric() function is used to detect whether a variable is a number or a numeric string.
If either $num1 or $num2 is not a number or a numeric string, print a prompt message telling you that you need to enter a numeric type.