Answers for "delete last 2 characters php"

PHP
4

remove last comma from string php

rtrim($my_string, ',');
Posted by: Guest on November-12-2020
2

php substr remove last 4 characters

echo substr($string, 0, -3);
Posted by: Guest on October-24-2020

Code answers related to "delete last 2 characters php"

Browse Popular Code Answers by Language