Answers for "preg_match for name in php"

PHP
1

preg_match in php

<?php
$my_email = "[email protected]";
if (preg_match("/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/", $my_email)) {
echo "$my_email is a valid email address";
}
else
{
  echo "$my_email is NOT a valid email address";
}
?>
Posted by: Guest on October-29-2020
1

php preg_match

preg_match ( string $pattern , string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]] ) : int
Posted by: Guest on April-10-2020

Code answers related to "preg_match for name in php"

Browse Popular Code Answers by Language