Hi I have a string, and I want to remove the last character.
THis character is a '/' (slash).
How would I do this?
Printable View
Hi I have a string, and I want to remove the last character.
THis character is a '/' (slash).
How would I do this?
substr()
PHP Code:$string = "test/";
$string = substr($string, 0, -1);