Location: PHPKode > projects > FreeKore > freekore.v0.2/app/helpers/validate.php
<?php
/**
 * FreeKore Php Framework
 * Version: 0.1 Beta
 *
 * @Author     M. Angel Mendoza  email:hide@address.com
 * @copyright  Copyright (c) 2010 Freekore PHP Team
 * @license    New BSD License
 */

/**
 * @package validate helper
 * @since   0.1 Beta
 */

if(!function_exists('is_email')){
	
	function is_email($pMail) {
	    if (ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@+([_a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]{2,200}\.[a-zA-Z]{2,6}$", $pMail ) ) {
	       return true;
	    } else {
	       return false;
	    }
	} 
		
}

if(!function_exists('is_empty')){
	
	function is_empty($str) {
		$str = trim($str);
	    if ($str!=null && $str!='') {
	       return FALSE;
	    } else {
	       return TRUE;
	    }
	} 
		
}
Return current item: FreeKore