Function __global->mask_email_address
Definitions
sources/crypt.php
- Replace most characters in an e-mail with asterisks.This will replace all characters except the first and last before the @, the top-level domain (e.g. .com), and the first and last character after @ before the top-level domain.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $email_address | SHORT_TEXT | No | No | required parameter | N/A | N/A | The e-mail address to mask |
Returns
- The masked e-mail address
- Type: SHORT_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Replace most characters in an e-mail with asterisks.This will replace all characters except the first and last before the @, the top-level domain (e.g. .com), and the first and last character after @ before the top-level domain.
*
* @param SHORT_TEXT $email_address The e-mail address to mask
* @return SHORT_TEXT The masked e-mail address
*/
function mask_email_address(string $email_address) : string
* Replace most characters in an e-mail with asterisks.This will replace all characters except the first and last before the @, the top-level domain (e.g. .com), and the first and last character after @ before the top-level domain.
*
* @param SHORT_TEXT $email_address The e-mail address to mask
* @return SHORT_TEXT The masked e-mail address
*/
function mask_email_address(string $email_address) : string

