Answers for "remove last 1 character from string in php"

PHP
9

remove last letter php

<?php
echo substr('abcdef',0, -1);     // abcde
?>
Posted by: Guest on June-09-2020
0

php remove last character from string if comma

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

Code answers related to "remove last 1 character from string in php"

Browse Popular Code Answers by Language