Remove space or blank line at begin
<p>How to remove space or blank line at begin , i have on my site part where users can write description about self, but when u type 10 times space button you can save this in database.. how can i protect to type space at begin or remove ?</p>

<p>example:</p>

<pre><code>                       with space
</code></pre>

<p>and</p>

<pre><code>without space (this is good)
</code></pre>

<p>This is my code now:</p>

<pre><code>$sql = "UPDATE user SET description='".addslashes(str_replace("\r\n"," ",$_POST[description]))."'";
</code></pre>
