title: How to pass values values when creating an object
body: <p>I am using php 5.3.6.</p>
  
  <p>When I create a new object, the following works:</p>
  
  <pre><code>$my_object = new my_clas();
  </code></pre>
  
  <p>But what if I wanted to pass values, such as this:</p>
  
  <pre><code>$my_object = new my_clas( $value1 , @value2 );
  </code></pre>
  
  <p>Where would those values go? Do they go to the __construct function or can I target a specific function?</p>
  
  <p>Note: Right now I have a class with a __construct function and I am doing the above (e.g., passing values) and everything works fine, but I am wondering if this is just a happy accident or something I should worry about.</p>