> is there anyway to check if a string could be used a variable name. So
> return false if the first character isn't a letter or if it contains
> spaces etc.
See <http://www.php.net/language.variables> which provides a regular
expression to validate variabe identifiers.