Use the SUBSTR command:
$strWithoutLastChar = substr("abcdef", 0, -1);
This will return “abcde”
How to remove a trailing character in a string using PHP
Use the SUBSTR command:
$strWithoutLastChar = substr("abcdef", 0, -1);
This will return “abcde”