Click to See Complete Forum and Search --> : how to substitute last character


aeav
03-17-2005, 04:02 PM
I want to substitute the last character of a string, but I don´t know what´s the last character then how can I substitute it I don´t know the last word or character? I´m using PHP....


Can somebody help-me?


Thank you

sharth
03-17-2005, 05:09 PM
substr(someString, 0, -1);

aeav
03-18-2005, 12:00 PM
it works!
thank you!!