Your question is too broad though, there are plenty of examples online, so I think what you may be wanting to know is: what's the easiest, least over the top way to get started using OOP?Well, the easiest way to start getting the hang of OOP in PHP is to use static functions in classes, for example:
class Blog_Entries {
public static function add($title, $body) {
}
public static function update($id, $title, $body) {
}
public static function delete($id) {
}
}
And in your code you can call them by doing Blog_Entries::add(..) or Blog_Entries::delete(..) just as any other function. This will give you an idea of how it's supposed to work.
Non-static methods create multiple copies of the same class, and after you're used to dealing with classes, figure out autoloading, have a single entry point, then I'd suggest moving on. If you jump...