I need to remove single quotes and comma in single
trim() function in PHP.
For example see the below code:
$Myvariable1 = rtrim($Myvariable,"'");
The first line I am using "
rtrim" to remove the single quote and in the second line again i am using "rtrim" to remove the comma.
Can we use the single trim function to remove both the single quote and comma?
Not the answer you were looking for with rtrim, but achieves the same thing.