php substring last 4 characters to censure credit card code example
Example: php substring last 4 characters to censure credit card
$censured_data = '** ** ** ' . substr($row['credit_card_number_from_db'], -4);
$censured_data = '** ** ** ' . substr($row['credit_card_number_from_db'], -4);