title: Php multiple delimiters in explode
body: <p>I have a problem, I have a string array, and I want to explode in different delimiter. For Example</p>
  
  <pre><code>$example = 'Appel @ Ratte';
  $example2 = 'apple vs ratte'
  </code></pre>
  
  <p>and I need an array which is explode in @ or vs.</p>
  
  <p>I already wrote a solution, but If everybody have a better solution please post here.</p>
  
  <pre><code>private function multiExplode($delimiters,$string) {
      $ary = explode($delimiters[0],$string);
      array_shift($delimiters);
      if($delimiters != NULL) {
          if(count($ary) &lt;2)                      
              $ary = $this-&gt;multiExplode($delimiters, $string);
      }
      return  $ary;
  }
  </code></pre>