Answers for "remove last two characters from a string php"

PHP
9

remove last letter php

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

php substr remove last 4 characters

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

Code answers related to "remove last two characters from a string php"

Browse Popular Code Answers by Language