Page 1 of 1

Remove Last Character from Variable

Posted: Wed Sep 10, 2003 11:32 am
by theoph
What is the best way to remove a last character from a variable.

The last character that I want to remove is a ",".

-Newbie Dave

Posted: Wed Sep 10, 2003 11:39 am
by pootergeist
$var = substr($var,0,-1);