the right way to limit text? PHP : <p>There is a way to count blank space with <code>substr</code>?</p>

<pre><code>$testo = $news['testo'];

$testo = strip_tags($testo);

echo "&lt;p&gt;".substr($testo,0,200)."&lt;/p&gt;";
</code></pre>

<p>I did several tests and i see that <code>substr</code> does NOT count whitespace. How can I tell him to count them?</p>

<p>This is a problem because it gives me a different number of characters each time for article.</p>
