Codice PHP:
if(is_numeric($dato))
{
 
#se è numerico
}
else
{
 
#se non lo è