Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

mask card php

function ccMasking($number, $maskingCharacter = 'X') {
    return substr($number, 0, 4) . str_repeat($maskingCharacter, strlen($number) - 8) . substr($number, -4);
}
 
PREVIOUS NEXT
Tagged: #mask #card #php
ADD COMMENT
Topic
Name
8+8 =