title: How to replace everything between {} [] () braces from a string?
body: <p>I want to remove everything inside braces. For example, if string is:</p>
  
  <pre><code>[hi] helloz [hello] (hi) {jhihi}
  </code></pre>
  
  <p>then, I want the output to be only <code>helloz</code>.</p>
  
  <p>I am using the following code, however it seems to me that there should be a better way of doing it, is there?</p>
  
  <pre><code>$name = "[hi] helloz [hello] (hi) {jhihi}";
  $new  =  preg_replace("/\([^)]+\)/","",$name); 
  $new = preg_replace('/\[.*\]/', '', $new);  
  $new = preg_replace('/\{.*\}/', '', $new);  
  echo $new;
  </code></pre>