codingtcher.com
Theme Night
Home
Login

Username validation in php without database

Php Code
<?php
$username = "[email protected]";
if(preg_match('/^[[email protected]]{5,}$/', $username)){
    echo "valid";
} else{
    echo "invalid";
}
?>

Related Code