title: php imap reading body message
body: <p>I am writing a simple php script for reading emails.</p>
  
  <p>When I extract mail body with:</p>
  
  <pre><code>imap_body($mbox, $i);
  </code></pre>
  
  <p>I have returned something like this:</p>
  
  <pre><code>--0016e6db2b334d4d7904a883f4ec 
  Content-Type: text/plain; charset=ISO-8859-1 
  
  &lt;The message arrived&gt; 
  
  --0016e6db2b334d4d7904a883f4ec 
  Content-Type: text/html; charset=ISO-8859-1 
  
  &lt;The message arrived&gt; 
  
  --0016e6db2b334d4d7904a883f4ec-- 
  </code></pre>
  
  <p>How can I extract only: ?
  I am using php_imap.</p>
  
  <p>Thanks.</p>