This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Generic utility method to mask a string with a specific character | |
* | |
* @param string $stringToMask The string to be masked | |
* @param int $percentageOfCharactersToShow What percentage of characters to show. Default = 20% | |
* @param string $maskCharacter With which character to mask. Default = '*'. If more characters are used, only the first will be used as mask | |
* @param bool $maskFromStart From which direction to start masking. TRUE = From start, FALSE = From the end | |
* @return string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?=file_get_contents(__FILE__)?> |