title: Sorting Wikipedia API search results into an array
body: <p>Using the following code as an example:</p>
  
  <pre><code>$wikisearch = "http://en.wikipedia.org/w/api.php?action=opensearch&amp;search=inception";
  $wikisearchlist = file_get_contents($wikisearch);
  echo $wikisearchlist;
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>[
      "inception",
      [
          "Inception",
          "Inception Motorsports",
          "Inception of Darwin's theory",
          "Inception (soundtrack)",
          "Inception (McCoy Tyner album)",
          "Inception (Download album)",
          "Inception/Nostalgia",
          "Inception date",
          "Inception (disambiguation)"
      ]
  ]
  </code></pre>
  
  <p>I want to firstly remove the query at the start ("inception"), then decode the JSON to create an array of all the results. Then, remove the array elements that don't contain '(soundtrack)' and '(Download album)' in them (except the first result), so the final array would look something like:</p>
  
  <pre><code>[0] =&gt; "Inception"
  [1] =&gt; "Inception (soundtrack)"
  [2] =&gt; "Inception (Download album)"
  </code></pre>
  
  <p>What's the best way to do this?
  Thanks</p>