SyntaxFix
Write A Post
Hire A Developer
Questions
Use substr() with a negative number for the 2nd argument.$newstring = substr($string1, -1);
$newstring = substr($string1, -1);