Well, admit that you have no experience, only a little bit of programming experience, from the previous Lynda saw some of the JS video tutorial, so now learn PHP, which does not understand the concept of all the analogy to JS to understand it, ~ ~
Although not accurate, but as long as I can understand, fine in the next contact process slowly screening it ~ ~
PHP class, PHP class is understood as a collection of objects, you can define constants, properties and methods for this class;
Just like the following code in JS:
var myH1 = document.getElementById ("my-h1");
var message = myh1.innerhtml;
innerHTML is a property of the message;
Message is actually an object, he attributes string to this class;
Creating a new class in PHP is equivalent to creating a string class in JS, but you can define the properties and methods of the class yourself;
Metaphor is very inappropriate, but at least I understand, and then slowly change it ~ ~
Understanding of the PHP class