Is it advantageous to use static methods in PHP?
<p>I was reading some articles and discussions on the use of <code>static methods</code> on objects and it struck me how much the views differ.</p>

<p>Someone say that using static methods is an <strong>advantage</strong>. Someone says that use is a big <strong>mistake</strong>.</p>

<p>I wonder how is it?
My question is <strong>when</strong> to use static methods and when not?</p>

<p>I would like to hear answers from <strong>experts in this field</strong> (PHP OOP). This is because I know how it really is.</p>

<p>The following code should be analogous. Just call the static method is <strong>simpler</strong> (my opinion):</p>

<pre><code>&lt;?php    

    class A
    {
        public function write($a) {
            echo $a; 
        }
     }

     class B
     {
        public static function write($a) {
            echo $a;
        }
     }

     $a = new A;
     $a-&gt;write(5); // 5

     B::write(5);  // 5
?&gt;
</code></pre>

<p>Thank you.</p>
