title: What's difference between __construct and function with same name as class has?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/455910/what-is-the-function-construct-used-for">what is the function __construct used for?</a>  </p>
  </blockquote>
  
  
  
  <p>is there any difference between __construct function and function with same name as class has?</p>
  
  <pre><code>class foo {
      function foo ($something){
          echo "I see ".$something." argument";
      }
  }
  
  class bar {
      function __construct ($something){
          echo "&lt;br /&gt;
              I see ".$something." argument again";
      }
  }
  
  $foo = new foo("foo");
  $bar = new bar("bar");
  </code></pre>