Hi,
how to check that a variable $name doesn't contain the following special characters. [~`!@#$%&*()_+-={}[]|\"';:<>?,./], using ereg() function
Looks tricky, why do you need to do that? (there are functions that take care of special chars)
Nick
Why don't you reverse the problem? Try to look at this this way: Variable name can contain alphabetic chars and underscore char ('_'). Also, it have to start from a letter.