title: Function With/Without Passing an argument - PHP
body: <p>Below is a function I created for inserting break lines.</p>
  
  <p>It works fine like this; br(2); //any number, 2 as an example.</p>
  
  <p>However I would like it to work if I typed just br(); it will use 1, but if I specify a number it will use that. Sort of as a default value if none is specified, I've looked throughout google, but can't find the right words to search and find te answer I suppose.</p>
  
  <pre><code>function br($i) {
      $j = 0;
      while ($j &lt;= $i) {
          echo '&lt;br /&gt;';
          $j++;
      }
  }
  </code></pre>