title: In PHP, is too many assignments are considered bad? If so why?
body: <p>Netbeans seems to suggest too many assignments is quite bad and should be changed.</p>
  
  <p>i.e.</p>
  
  <pre><code>$foo = ' bar ';
  $foo = trim($foo);
  </code></pre>
  
  <p>Should better coded as </p>
  
  <pre><code>$foo = ' bar ';
  $trimmed_foo = trim($foo);
  </code></pre>
  
  <p>Is this acceptable? If so why? I know I can switch this particular hint type off in setting, but just checking if someone spotted anything for this.</p>