Trim multiple characters using php
<p>How to trim multiple characters at begin and end of string.<br>
string should be something like <code>{Hello {W}orld}</code>.<br>
i want to trim both <code>{</code> and <code>}</code> at begin and end.  </p>

<p>don't want to use multiple <code>trim</code> function.  </p>
