title: how to remove single quotes and comma in single trim function in php
body: <p>I need to remove single quotes and comma in single <code>trim()</code> function in PHP.
  For example see the below code:</p>
  
  <pre><code>$Myvariable1 = rtrim($Myvariable,"'");
  rtrim($Myvariable1,",");
  </code></pre>
  
  <p>The first line I am using "<code>rtrim</code>" to remove the single quote and in the second line again i am using "rtrim" to remove the comma.</p>
  
  <p>Can we use the single trim function to remove both the single quote and comma?</p>