18.02.2016, 16:18
I'm gonna say IsNumeric and if it makes your server crash you're using it wrong. Alternatively you may use sscanf with quiet specifiers.
PHP код:
IsNumeric(string[]) return !sscanf(string, "{d}");