Quote:
Originally Posted by __underScore
Credits: silentchris
100% C&P von WR-Cheats
Proof: 
|
Noch dazu geht es Prozessor schonender und um einiges kürzer:
PHP Code:
BOOL IsNumeric( CHAR *txt )
{
BOOL STATUS = TRUE;
unsigned i = NULL;
while( STATUS && i < strlen( txt ) )
{
if ((txt[i]<'0' or txt[i]>'9') and txt[i]!='.')
STATUS=FALSE;
i++;
}
return STATUS;
}