Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Mask credit card number in PHP

function ccMasking($number, $maskingCharacter = 'X') {
    return substr($number, 0, 4) . str_repeat($maskingCharacter, strlen($number) - 8) . substr($number, -4);
}
Comment

php mask credit card number

return substr_replace($creditCardNumber, str_repeat("X", 8), 4, 8);
Comment

PREVIOUS NEXT
Code Example
Php :: Embed the site when you click on the link laravel 
Php :: ERROR: The following modules depend on mpm_prefork and need to be disabled first: php7.2 
Php :: laravel edit 
Java :: Cannot fit requested classes in a single dex file 
Java :: java get appdata path 
Java :: java create window 
Java :: how to get all the names of the files in a folder in java? 
Java :: register listener spigot 
Java :: change java version command line debian 
Java :: rgb to hex java 
Java :: full screen in jframe 
Java :: disable buttonjava 
Java :: android studio lower case letters on a button 
Java :: java how to print an array 
Java :: java min integer 
Java :: java get current milliseconds 
Java :: joptionpane.showconfirmdialog yes no example 
Java :: open webpage android studio 
Java :: java set textview color 
Java :: set height of layout programmatically android 
Java :: set color of text for jlabel 
Java :: java selenium wait 
Java :: how to get the time in java 
Java :: set location of a label java 
Java :: java create date object from yesterday 
Java :: java jlabel border 
Java :: spring security default username 
Java :: convert long to date in java 
Java :: sort descending in java 
Java :: how to convert int to string java 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =