title: PHP - How to remove/trim HTML from Array?
body: <p>Im using get_file_contents to create a Array. Below you can see a <code>var_dump</code> of my Array.</p>
  
  <p>How I get this Array?</p>
  
  <pre><code>function remap_alternating(array $values) {
      $remapped = array();
      for($i = 0; $i &lt; count($values) - 1; $i += 2) {
          $remapped[trim($values[$i], ": ")] = trim($values[$i + 1], " ");
      }
      return $remapped;
  }
  
  $mapped = remap_alternating($matches[0]);
  
  foreach($mapped as $key =&gt; $val) {
  }
  </code></pre>
  
  <p><strong>Result of</strong>: <code>var_dump($mapped);</code></p>
  
  <pre><code>array(32) {
    ["&lt;td valign="top" class="maintext"&gt;&lt;strong&gt;Age:&lt;/strong&gt;&lt;/td&gt;"]=&gt;
    string(137) "&lt;td class="graytext"&gt;21 Years. &lt;/td&gt;"
  
    ["&lt;td valign="top"&gt;&lt;strong&gt;Ethnicity:&lt;/strong&gt;&lt;/td&gt;"]=&gt;
    string(122) "&lt;td class="graytext"&gt;Black&lt;/td&gt;"
  
    ["&lt;td valign="top" class="maintext"&gt;&lt;strong&gt;Location:&lt;/strong&gt;&lt;/td&gt;"]=&gt;
    string(152) "&lt;td class="graytext"&gt;Dubai, United Arab Emirates&lt;/td&gt;"
  </code></pre>
  
  <p><strong>My question</strong> is how can I remove HTML code from this Array?</p>