Mask credit card number in PHP

前端 未结 11 1511
执笔经年
执笔经年 2020-12-09 13:19

I have credit card number which I want to mask as below:

$cc = 1234123412341234

echo cc_masking($cc)

1234XXXXXXXX1234

function cc_masking($number) {.....}         


        
11条回答
提交回复
热议问题