title: What is the function __construct used for?
body: <p>I have been noticing <code>__construct</code> a lot with classes. I did a little reading and surfing the web, but I couldn't find an explanation I could understand. I am just beginning with OOP.</p>
  
  <p>I was wondering if someone could give me a general idea of what it is, and then a simple example of how it is used with PHP?</p>