title: Last posts text limit characters in phpbb
body: <p>I found this code for showing last posts in phpbb forum. I wanna set charatcters limit in post_text.</p>
  
  <pre><code>&lt;?php
      // Now let's output the content
      // A ted vypsat obsah
      while ($row = $db-&gt;sql_fetchrow($result))
      {
  $url = generate_board_url() . "/viewtopic.{$phpEx}?f={$row['forum_id']}&amp;amp;t={$row['topic_id']}&amp;amp;p={$row['post_id']}#p{$row['post_id']}"; //added fedforum to url
  $urlmini = generate_board_url() . "/memberlist.{$phpEx}?mode=viewprofile&amp;u={$row['poster_id']}"; //added fedforum to url
  //old line $url = generate_board_url() . "viewtopic.{$phpEx}?f={$row['forum_id']}&amp;amp;t={$row['topic_id']}&amp;amp;p={$row['post_id']}#p{$row['post_id']}";      
   echo '&lt;small&gt;&lt;a target="_blank" href="' . $url . '"&gt;' . $row['post_subject']. '&lt;/a&gt;&lt;br&gt;'. $row['post_text'] .'&lt;br&gt;od: &lt;a target="_blank" href="' . $urlmini . '"&gt;' . ucwords($row['username']).'&lt;/a&gt;' . ' v '.'&lt;font style="color:#aaa;"&gt;' . date("H:i",$row['post_time']).'&lt;/font&gt;', '&lt;br&gt;&lt;br&gt;&lt;/small&gt;';
      }
      ?&gt;
  </code></pre>
  
  <p>Does anybody know how to set characters limit for <code>$row['post_text']</code> ?</p>