SyntaxFix
Write A Post
Hire A Developer
Questions
The code works well for me.
$str = substr($str ,-(strlen($str)-1));
Maybe, contribute with answers too.