View Full Version : Cut string?
Dimava
Fri 10th May '02, 10:06pm
How do I cut the last character of a string, knowing that the last letter will always be "c" (without the quotes)
thanks
Dimava
Gamefreak
Sun 12th May '02, 4:27pm
Just use this:
$cut_string = substr($whole_string, 0, strlen($whole_string)-1);
That will always cut the last character off.
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.