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 :: symfony call another controller 
Php :: laravel get extension from url 
Php :: snap remove php stome 
Php :: wordpress wpdb insert debug 
Php :: laravel gigapay create employee 
Php :: laravel tinker factory 
Php :: php get domain name from url 
Php :: créer projet laravel 
Php :: checks input if number only in php 
Php :: php object to xml 
Php :: how change the languge of fie manager in laravel 
Php :: Morocco 
Php :: laravel session put method 
Php :: the requested php extension ext-intl * is missing from your system ubuntu 
Php :: phpmyadmin max upload 
Php :: pasar variables con cronjob 
Php :: add new column to table laravel 
Php :: laravel orwhere 
Php :: laravel simplexmlelement xml add attribute 
Php :: create variable in laravel blade 
Php :: Turning a StdClass object into an array 
Php :: get table name of model laravel inside the model 
Php :: get the page content in wordpress 
Php :: php.ini location mac 
Php :: php make array to certain length 
Php :: access storage from the view laravel 6 
Php :: php get first last loop 
Php :: prestashop get all products 
Php :: show selected value in dropdown laravel 
Php :: read text from docx in php 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =