17.08.2015, 20:22
I made a function for you :
PHP код:
IsLetterOrNumber(const string[], l = sizeof(string))
{
for(new i = 0; i < l; i++)
switch(string[i])
{
case 'A' .. 'Z': continue;
case 'a' .. 'z': continue;
case '0' .. '9': continue;
default: return 0;
}
return 1;
}