Any body will explain the exact difference the class and functions in PHP. upto now i just worked with functions and i just started the classes so please.
A function performs an action and manipulates data. A class is a collection of functions (actions, methods) and attributes (states, member variables). Edit: it's possible to go into great detail about classes, whole books have been written about their design. I decided to keep it to one line .
If you are using classes, you are creating objects - OOP is very different from procedural programming (which is, typically, about code reuse); You might want to have a look at the OOP pages on the official site for more info, though there is *plenty* of information elsewhere shoudl you require it. http://php.net/manual/en/language.oop5.php