Using -> with a static function
<p>Hi I'm a bit of a newbie to OOP, i just have a quick question: say I have a function in a class declared as </p>

<pre><code>class House
{
    public static function hasAlcohol() 
    {
        // Do Something
    }
}
</code></pre>

<p>I know i can call this as </p>

<pre><code>House::hasAlcohol()
</code></pre>

<p>However, i would also like to know if its okay with coding standards and PHP and if it would be error free to call hasAlcohol() from an instance of house (i tried it and got no errors), for example</p>

<pre><code>$house = new House();
$house-&gt;hasAlcohol();
</code></pre>
