View Full Version : check that string has a abc character
esthera
12-03-2007, 01:54 PM
is there a function i could use to check a string that it has a alpha characters (numbers not counting) i wnat to check that it has at least 1
Fou-Lu
12-03-2007, 03:08 PM
Your not looking for 'abc' in specific right, just alpha (not numeric numbers)?
Just run it against a ctype_alpha to see if it is alpha characters only.
esthera
12-03-2007, 05:16 PM
i just want to check if any character in the string is alpha
Fumigator
12-03-2007, 05:20 PM
You can use a simple regex to do this.
psykx
12-03-2007, 05:49 PM
e.g [a-zA-Z]
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.