Php substr and trim
<p>I want to read the last line of a block of text , e.g:</p>

<blockquote>
  <p>250-SIZE 31457280</p>
  
  <p>250-AUTH LOGIN CRAM-MD5</p>
  
  <p>250 OK</p>
</blockquote>

<p>Here is my current code - it reads the first line only:</p>

<pre><code>if (substr(trim($res), 0, 3) != "250") {
</code></pre>

<p>Giving an output of </p>

<blockquote>
  <p>250-SIZE 31457280</p>
</blockquote>

<p>I want to get the last </p>

<blockquote>
  <p>250 OK</p>
</blockquote>

<p>(there are no blank lines in between it's my copy paste problem ). Any idea?</p>
