title: How do I use classes?
body: <p>I'm fairly new to programming, and there's one thing I'm confused by. What is a class, and how do I use one? I understand a little bit, but I can't seem to find a full answer.</p>
  
  <p>By the way, if this is language-specific, then I'm programming in PHP.</p>
  
  <p>Edit: There's something else I forgot to say. Specifically, I meant to ask how defining functions are used in classes. I've seen examples of PHP code where functions are defined inside classes, but I can't really understand why. </p>