title: PHP preg_match function variable extraction
body: <p>Assuming that I have a string like this:</p>
  
  <pre><code>[$IMAGE[file_name|width|height]]
  </code></pre>
  
  <p>How can I match and obtain 2 variables</p>
  
  <pre><code>$tag = "IMAGE"
  $param = "file_name|width|height"
  </code></pre>
  
  <p>Using a php preg_match function?</p>