Re: check string contents: can be used as var?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: check string contents: can be used as var?

From: Oli Filth <catch@olifilth.co.uk>
Date: Tue Oct 18 2005 - 19:39:33 CEST

Oliver Saunders said the following on 18/10/2005 18:21:
> 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.
>

Just out of curiosity, why do you want to do this?

-- 
Oli
Received on Mon Oct 24 02:10:40 2005