FREE PHP Scripts and Snippets

Ready to use Free PHP scripts and snippets to use in your projects.
All Free Scripts & Snippets Complete PHP Scripts

Detect Valid Email address with PHP

>> Share on Facebook & Impress your friends <<

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.


function isValidEmail($email)
// Call to this function will be like
// $result=isValidEmail("")  
$flag = false; //Initiate it as invalid email address
$flag = true;  // Yes, it is valid email address!

return $flag;  // return the result

}  // end of function isValidEmail


Request Custom Snippet

Just $5 Onwards


Previously Ordered Snippets

PHP function to check if a given URL is in valid format.
Price $5 Order Now

Random PHP Scripts and Snippets

Make URLs in plain text clickable [PHP]

This is a simple PHP function to parse text provided and automatically hyperlink the links in the text.

PHP - Extract all links from a web page

PHP Script to extract all links from a web page. This PHP Snippet reads the contents of a web page...

PHP Code to list all files in a folder

This PHP Code snippet lists all files in a folder and hyperlinks them accordingly. Very clean, easy to use function....

Generate Random Password in PHP

PHP Script to Generate Random Password. You can set the list of characters that you want to be used in...

Extracting all numbers from a String [PHP]

This PHP function extracts all numbers from a String and prints them as a comma separated list of numbers. Ready...

PHP extract multiple emails from text

PHP Script to scan a text and extract all email ids contained in the text. It outputs email addresses as...

[PHP] Time ago calculation function

It is a very nice PHP time ago function. You gave pass any date to it and it will tell...

PHP Create thumbnail of an image

PHP Script to create thumbnail of any image (.jpg, .png and .gif). This create thumbnail function is ready to use....