A very simple php snippet to check if an email id is valid or not. If the email address is valid then the script returns true. Otherwise it returns false. It basically checks format of the email address.
<?php
function isValidEmail($email)
{
// Call to this function will be like
// $result=isValidEmail("user@examle.com")
$flag = false; //Initiate it as invalid email address
if(filter_var($email,FILTER_VALIDATE_EMAIL))
{
$flag = true; // Yes, it is valid email address!
}
return $flag; // return the result
} // end of function isValidEmail
?>
PHP function to check if a given URL is in valid format.
Price $5 Order Now
100% Free PHP folder to gallery script. Just give the name of folder and it will generate gallery of all...
A very simple php snippet to check if an email id is valid or not. If the email address is...
PHP Script to create URL from string. It retails only URL Safe characters in the strings. So, now easily create...
PHP Script to extract all links from a web page. This PHP Snippet reads the contents of a web page...
This PHP Code snippet lists all files in a folder and hyperlinks them accordingly. Very clean, easy to use function....
PHP Script to Generate Random Password. You can set the list of characters that you want to be used in...
This is a simple PHP function to parse text provided and automatically hyperlink the links in the text.
This PHP function extracts all numbers from a String and prints them as a comma separated list of numbers. Ready...