How to trim extra spaces after the last character in PHP using anyscript
<p>Can u guys help me with a code that eliminates white spaces form the front as well as the back when inserting into my sql back of characters</p>

<p>For Eg: lets say that the word <code>"   hello   "</code>. Now i want to remove all these space when i enter my data in MySQL so when it gets inserted there are no more spaces either in the front or back of the word.</p>
