Location: PHPKode > projects > Krai Framework > script/demo/includes/lib/functions.lib.php
<?php
/**
 * A function library for the application
 *
 * This file contains some functions which are employed by various parts of the
 * application.
 *
 * @package Demo
 * @subpackage Lib
 * @author Greg McWhirter <hide@address.com>
 * @copyright Copyright (c) 2008
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 */

/**
 * Some light e-mail address obfuscation.
 *
 * This function implements some light obfuscation of email addresses. It changes
 * "hide@address.com" to "username -at- domain -dot- com"
 *
 * @param string $email The email address
 * @return string The obfuscated string
 */
function HideEmail($email)
{
  return preg_replace(array("#@#","#\.#"), array(" -at- "," -dot- "), $email);
}
Return current item: Krai Framework