src/Pyrite/Core/Filters.php
public static function protectEmail($email)
    {
        $chunks = explode('@', $email);
        $chunks[0] = substr($chunks[0], 0, 2) . '****';
        return implode('@', $chunks);
    }
public static function protectEmail($email)
    {
        $chunks = explode('@', $email);
        $chunks[0] = substr($chunks[0], 0, 2) . '****';
        return implode('@', $chunks);
    }
public static function protectEmail ( $ email ) { $ chunks = explode ( '@' , $ email ) ; $ chunks [ 0 ] = substr ( $ chunks [ 0 ] , 0 , 2 ) . '****' ; return implode ( '@' , $ chunks ) ; }
Hide most of the user part of an e-mail address

@param string $email String to filter

@return string
Hide most of the user part of an e - mail address