It might be a simple task. But I am new to PHP.
I am creating a string of values getting from database for a specific purpose.
How to remove last char from s
There's a few ways to go about it but:
$str = rtrim($str, "#");