Code:
myVariable1=12;
myVariables2='1a';
myVariables2='ab';
I have 3 variables like the above.

myVariable1 is numeric.
myVariable2 is half numeric.
myVariable3 is not numeric.

I like to check each variable of myVariables is numeric or not numeric.

The code below doesn't work correctly, but I hope it shows what I want.
Code:
if ( $myVariable is numeric )

{ 
echo 'Yes, it's numeric';
}
else
{ 
echo 'No, it's not numeric';
}