Synook

Go, OO!

Sometimes object orientation is the way to go…

<?php
     class Main {
         function __construct() {
             $this->output();
         }
         function output() {
             echo "Hello world";
         }
     }
     $main = new Main();
?>

… sometimes it just really really isn’t.