Crap, I don't have quotes around $var, for some reason I added them when I typed that out...
Anyways, using preg_match check these results...something isn't right here...
if (preg_match('%^[a-z]%i',$str)) {
echo 'pass';
} else {
echo 'fail';
}
It doesn't matter when I use 'i' or not...it's the same both ways...but the numbers should absolutely not be working...so very strange...
$str = '2asdf1'; fails
$str = 'asdf2'; passes
$str = 'Hello'; fails
$str = 'eHello'; passes
Eh?