Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php substr remove last 4 characters
smallz
Programming language:
PHP
2021-06-27 22:20:48
0
Q:
php substr remove last 4 characters
Mutturaj
Code:
PHP
2021-02-22 19:24:59
echo substr($string, 0, -3);
1
Nilpo
Code:
PHP
2021-06-27 03:05:54
echo substr($string, 0, -3);
0
Tags
php
remove
sub
character
characters
last
Related
get last character of string php
php remove after character
php remove everything after character
get the last comma position of string in php
php remove last element array
php remove last 3 letters from string
remove last entry from array in php
php substring last 4 characters to censure credit card
php remove stop words from string
remove last comma from string php
remove last letter php
remove every whitespace php
how to remove last element from php array
php remove last character from string
php remove last character from string if comma
php last of string till /
php string cut first x characters
php remove last character in string
New to Communities?
Join the community