This is a simple email address validation function written in PHP.It can be used in signup forms to validate email entries on form.Email address validation function will return 1 if it is valid and 0 if it is not.
function check_email($str)
{
//returns 1 if valid email, 0 if not
if(ereg(”^.+@.+\\..+$”, $str))
return 1;
else
return 0;
}
This PHP function creates a random string that can be used as a password generation tool for your website.You can generate an alphabetic,numeric,alphanumeric or alphanumeric with symbols random string that can be used as a random password.Just modify the array in the code to which characters you will use in the string.The string length can [...]
The PHP development team has announced the official release of PHP 5.3.0. This release is a major improvement in last few PHP versions,including bug fixes and exciting new features.
For more information about the bug fixes,new features/changes and how to migrate to PHP 5.3.0 from older versions, visit php.net release anouncement here.
Happy PHP-ing!