PHP - Remove last character if it's a period?

TimothyGM

New Member
How to remove the last character only if it's a period?\[code\]$string = "something here.";$output = 'something here';\[/code\]
 
Back
Top