title: How to implement php constructor that can accept different number of parameters?
body: <p>How to implement php constructor that can accept different number of parameters?</p>
  
  <p>Like</p>
  
  <pre><code>class Person {
      function __construct() { 
          // some fancy implementation
      } 
  } 
  
  $a = new Person('John');
  $b = new Person('Jane', 'Doe');
  $c = new Person('John', 'Doe', '25');
  </code></pre>
  
  <p>What is the best way to implement this in php?</p>
  
  <p>Thanks,
  Milo</p>