Answers for "how to remove last index of string php"

PHP
5

php remove last character from string

$hell = substr('hello', 0, -1);
Posted by: Guest on November-04-2019
0

php remove last character from string if comma

$string = rtrim($string, ',');
Posted by: Guest on June-24-2020

Code answers related to "how to remove last index of string php"

Browse Popular Code Answers by Language