title: Auto increment a value when calling a function
body: <p>How can I auto increment a value when calling a function? Here what I'm trying to do, and I need it just this way. Cant increment it any other way except when calling the function.</p>
  
  <pre><code>function makeyogurt($type = 1) {
      echo "Quantity $type.\n";
      makeyogurt($type++);
  }
  
  makeyogurt();
  </code></pre>