I was working with some validation.
I have the following code:
$var = "username";
echo preg_match ("/[a-zA-Z0-9]{6,}$/",$var);
If $var is correct preg_match returns 1.
But the manual says that it should return TRUE/FALSE, see http://dk.php.net/manual/en/function.preg-match.php.
Whats wrong?
I'm using PHP 4.2.0 on Windows 2000 Pro/IIS5.