Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php substring last 4 characters to censure credit card
Macke
Programming language:
PHP
2021-06-14 21:44:38
0
Q:
php substring last 4 characters to censure credit card
Ximena
Code:
PHP
2021-05-27 20:15:42
$censured_data = '** ** ** ' . substr($row['credit_card_number_from_db'], -4);
0
Tags
string
php
sub
character
card
characters
last
Related
php remove last character from string
php get first 5 characters of string
remove last comma from string php
php remove last character in string
get last character of string php
get the last comma position of string in php
php keep only digitts
remove last letter php
php get last digit of number
get last month php
get last month using php
php strftime year 2 digits
php remove last character from string if comma
find last instance of dash in string php
php remove last 3 letters from string
php filter non utf-8 characters
take last four digits php
get only the first two word from a string php
php substr remove last 4 characters
New to Communities?
Join the community