title: Is it really bad practice to assign a variable multiple times, as per a NetBeans warning?
body: <p>I have a function that is basically like this:</p>
  
  <pre><code>        //Init variable
      $ready = FALSE;
  
          //if submit
      filter_input(INPUT_POST, "submit") ?  $ready = TRUE : $ready = FALSE ; 
  
          //return the result
      return $ready;
  </code></pre>
  
  <p>NetBeans is warning me against multiple assignments. In other languages this is pretty normal to do. It is the only NetBeans warning that I get. Is this code okay to use?</p>