title: PHP - Most efficient way to extract substrings based on given delimiter?
body: <p>I have a string that contains some values I need to extract.  Each of these values is surrounded by a common character.  </p>
  
  <p>What is the most efficient way to extract all of these values into an array?</p>
  
  <p>For example, given the following string:</p>
  
  <pre><code>stackoverflowis%value1%butyouarevery%value2%
  </code></pre>
  
  <p>I would like to get an array containing <code>value1</code> and <code>value2</code></p>