PHP Ereg.Php – String Function

<?php
   $username = "Test";
   if (ereg("([^a-z])",$username)) echo "Username must be all lowercase!";
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.