Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php preg_match email validation code

<?php
   function checkemail($str) {
         return (!preg_match("/^([a-z0-9+_-]+)(.[a-z0-9+_-]+)*@([a-z0-9-]+.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE;
   }
   if(!checkemail("alex@tutorialspoint.com")){
      echo "Invalid email address.";
   }
   else{
      echo "Valid email address.";
   }
?>
Comment

PREVIOUS NEXT
Code Example
Php :: woocommerce disable zoom on product image 
Php :: get the today data laravel 
Php :: php check method of http request 
Php :: validation file laravel 
Php :: storage link laravel 
Php :: get_template_directory_uri 
Php :: how to use old for select in blade laravel 
Php :: laravel list all routes 
Php :: ubuntu php uninstall 
Php :: php artisan migrate create table 
Php :: composer install –ignore-platform-reqs 
Php :: content-type application/json php 
Php :: CLI to create a new laravel project 
Php :: php loop through json 
Php :: view a pdf file in the browser using the php header function 
Php :: string replace smarty 
Php :: laravel migration data types 
Php :: date casting from datetime to d-m-Y laravel 
Php :: close mysql connection in php 
Php :: Sorry, This File Type Is Not Permitted for Security Reasons 
Php :: Call to undefined function AppHttpControllerscurl_init() 
Php :: blade comment 
Php :: wordpress get archive title 
Php :: how assign current date to input type date html in php 
Php :: count object php 
Php :: wp_query post per page 
Php :: laravel insert or ignore 
Php :: how to decode jwt token in php 
Php :: php console output 
Php :: adding css to php file 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =