Hyvor Developer
  Home   Download   Copy
Code
<pre>

<?php
$text = '   Hello  ';

echo $text; // with white spaces
echo '<br>';
echo trim($text); // no white spaces

?>
</pre>
Result