title: Loop array and extract all valid email addresses
body: <p>I allow a CSV to be uploaded and then I convert it into an array:</p>
  
  <pre><code>$csvAsArray = array_map('str_getcsv', file($results['full_path']));
  </code></pre>
  
  <p>The above code will produce something like this:</p>
  
  <pre><code>array(127) {
    [0]=&gt;
    array(3) {
      [0]=&gt;
      string(4) "Name"
      [1]=&gt;
      string(5) "Email"
      [2]=&gt;
      string(9) "Something"
    }
    [1]=&gt;
    array(3) {
      [0]=&gt;
      string(3) "dfg"
      [1]=&gt;
      string(24) "something@something.com"
      [2]=&gt;
      string(2) "34"
    }
    [2]=&gt;
    array(3) {
      [0]=&gt;
      string(3) "dfg"
      [1]=&gt;
      string(23) "something@something.com"
      [2]=&gt;
      string(2) "34"
    }
  </code></pre>
  
  <p>I can't guarantee the structure of the CSV which is why I can't look up a particular column.  So I can loop the array e.g.</p>
  
  <pre><code>foreach($csvAsArray as $csvData) {
      var_dump($csvData);
  }
  </code></pre>
  
  <p>How could I extract all the valid email addresses from this array?</p>