title: Extra white spaces automatically disabled in PhP: why?
body: <p>I was trying to use the trim() function on my $_POST variable for a form I just created, but noticed there was no use as the extra white spaces are automatically disabled. </p>
  
  <p>I created a very simple PhP form (form.php) asking a name to the user. Then I have in my target.php (page where the data is processed) something like this: </p>
  
  <pre><code>&lt;p&gt;Hello &lt;?php echo $_POST['nickname'];?&gt;, how are you today?&lt;/p&gt;
  </code></pre>
  
  <p>The fact is that even if the user enter as a name "     Peter     ", I see this in Safari and Chrome : "Hello Peter, how are you today?"... Without using the trim() function ! </p>
  
  <p>So here is my question : are the modern browser automatically trimming the end result? </p>
  
  <p>Thank you in advance! </p>