title: PHP : How to remove string between "[" and "]"
body: <p>I need to remove string inside [...] including "[]" itself. I tried searching for a solution from this site. I have a clue that I should try something with preg_replace but it seems too expert to me.</p>
  
  <p>For example : </p>
  
  <pre><code>[gallery ids="92,93,94,95,96,97,98,99,100" orderby="rand"] Description The thirty-two storey resort condominium in Phuket, located Just 150m from Patong beach where choices of activities, water sp 
  </code></pre>
  
  <p>I need to remove <strong>[gallery ids="92,93,94,95,96,97,98,99,100" orderby="rand"]</strong> from the example text. And it always begins with <strong>[gallery ids="</strong> .</p>
  
  <p>Please suggest.</p>