I have a script that I want to use if() to check and see if the $string has numbers and commas only. If it has more than numbers it needs to return a message.
E.g:
PHP Code:
if (isnumber($number)) {
echo "it is a number";
} else {
echo "it is not jsut number";
}
Does anyone know how I can do this?