To check a variable is a numeric value in php, you need the use the is_numberic() function.
Copy and paste the code below in to your .php page, and verify the output.
Change the number to some characters and check the output again.
<?php
if (is_numeric(87329))
{
echo "Yes";
} else {
echo "No";
}
?>