hello-
I have a pretty easy question for some of you.  I'm using the ereg function and it's 
not returning a true or false after it runs.  Below is the code snippet I'm using.

echo ereg("^[a-zA-Z]$", $fname);

as you can see I'm just looking to make sure the variable $fname just has characters 
a-zA-Z and nothing else.  Anyway, I'm running PHP 4.0.5 and I'm using the ereg 
function else where and it seems to work fine.

Thanks,
Jay Paulson

Reply via email to