__construct() vs method with same name as class
<p>I have recently started php and was wondering the differences between __construct() and having a method with the same name as the class? </p>

<p>Is there a reason for using it? All I can work out is it overrides the method named Foo or is it down to which you prefer?</p>

<p>E.g.</p>

<pre><code>class Foo {

    function Foo()
    {
       echo 'Foo stated&lt;br&gt;';
    }

    function __construct() {
       echo 'Construct started&lt;br&gt;';
    }
}
</code></pre>

<p>Thanks</p>
