title: Best way to initialize array with 1 or more items
body: <p>I'm setting the value of the variable as a array.</p>
  
  <p>Based on some conditions I have to initialize wether</p>
  
  <pre><code>array('a', 'b');
  </code></pre>
  
  <p>or</p>
  
  <pre><code>array('a', 'b', 'c');
  </code></pre>
  
  <p>So what is the best way? </p>
  
  <p>Should we write</p>
  
  <pre><code>$a = array('a', 'b');
  
  if($b &gt; 0) {
  
      $a[] = 'c'?
  
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if($b &gt; 0) {
  
      $a = array('a', 'b', 'c');
  
  } else {
  
      $a = array('a', 'b');
  
  }
  </code></pre>
  
  <p>First one looks more nice for me.</p>