How-to articles, tricks, and solutions about SUBSTR

How do I remove the last comma from a string using PHP?

To remove the last comma from a string in PHP, you can use the rtrim function.

How to Get the First Several Characters of a String in PHP

On this page, we represent to you the ways of getting the first five characters of a string in PHP. Keep on reading the snippet and check out the examples.

How to Remove the First Character of a String with PHP

In this short tutorial, we are going to represent to you the three main PHP functions that are used for removing the first character of a string.