ereg function

From: Date: Thu, 24 May 2001 16:16:43 +0000
Subject: ereg function
Groups: php.general 
Request: Send a blank email to php-general+get-54240@lists.php.net to get a copy of this message
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

« previous php.general (#54240) next »