By Martin / Musings / Monday February 9th, 2009 / No comments
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.
∎
I hope you enjoyed reading this article. If you wish, you may view some of the other recent or popular things I have written, or subscribe to receive RSS updates. You can also add a comment, or share this article on Twitter or Facebook, below.
Website copyright © Aspektas 2009 - 2010 Valid XHTML 1.0 Strict and CSS 2.1