poca differenza...

codice:
if ((string)((float)$variabile) != $variabile) 
{ 
    // non è un numero 
}