PHP Eregi() Function Searches String For Another String. – String Function

 
Its syntax is: int eregi(string pattern, string string, [array regs])<?
$password = "abc";
if (! eregi ("[[:alnum:]]{8,10}", $password)) :
     print "Passwords must be from 8 through 10 characters in length.";
endif;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.