SyntaxFix
Write A Post
Hire A Developer
Questions
An alternative to substr is the following, as a function:
substr
substr_replace($string, "", -1)
Is it the fastest? I don't know, but I'm willing to bet these alternatives are all so fast that it just doesn't matter.