title: Explode then Choose the Correct Email?
body: <p>I have a string which looks like this:</p>
  
  <p>email@domain1.com|email@domain5.com</p>
  
  <p>I need only the email matching 'domain5'.</p>
  
  <pre><code>$domain_needle  = 'domain5.com';
  $employer_email = 'email@domain1.com|email@domain5.com';
  $employer_email = explode('|', $employer_email);
  </code></pre>
  
  <p>How can I pick the array member which has the domain5?</p>
  
  <p>Using substr_count()?</p>