replacing some digits of a number with asterisks php code example
Example: replacing some digits of a number with asterisks php
<?phpfunction maskPhoneNumber($number){ $mask_number = str_repeat("*", strlen($number)-4) . substr($number, -4); return $mask_number;}echo maskPhoneNumber('08066417364');?>