Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php nth characters from end of string
Yulivy
Programming language:
PHP
2021-06-19 18:59:44
0
Q:
php nth characters from end of string
John Ware
Code:
PHP
2021-07-04 20:42:19
$newstring = substr($dynamicstring, -7);
3
jezmck
Code:
PHP
2021-06-23 19:31:34
$rest = substr("abcdef", -3, 1); // returns 'd'
1
Tags
string
php
character
characters
Related
get words after string in in php
php substr remove last 4 characters
php string cut first x characters
print only some characters of a string in php
php get first 5 characters of string
remove last letter php
php remove last character from string
php pop off the first character of string
get the string after a character in php
remove space from start and end of string in php
php get first character of string
php preg match space or start of string
php last of string till /
php remove last character in string
php remove last 3 letters from string
php remove everything after character
get last character of string php
take 10 character from string using php
php get string before character
New to Communities?
Join the community