Most times numbers are not part of a name. But apostrophes, spaces, dashes, periods and commas might or can be.
PHP variable names must begin with "$" so this eaxample may help:
PHP Code:
for($i=0;$i<strlen($name);$i++)
{
if(($char[i]<'a' ||$char[i]>'z')&&($char[i]<'A' ||$char[i]>'Z'))
{
return FALSE;
}
return TRUE;
}
With PHP you could also use a regular expression engine that would allow the above to be done without the loop.
cheers