Php classes, fuctions (static and public) explained with an analogy which can be understood by someone who knows CSS (and SCSS)?
<p>PHP Classes, static functions, and public functions.</p>

<p>Right now, I just understand what functions are (no idea what happens if they are static or public).</p>

<p>According to what I know a function would be the equivalent of a CSS selector:</p>

<pre><code>function dosomestuff {

}
</code></pre>

<hr>

<pre><code>#selector {
  declaration: ;
}
</code></pre>

<p>What would be a good CSS (or SCSS) analogy for the classes, static functions, and public functions?</p>
