<?php include '../util.inc'; include 'acct.inc'; start("Account Driver III"); // Test class. class drippy { private $v; // Constructor. function drippy($z) { $this->v = $z; } // Output. function zonk() { echo "Value: ", $this->v; } // Other output. function zink() { echo "Zink"; } } // Any class function that doesn't use $this can be called statically. echo "Static: "; drippy::zink(); echo "<p>"; // Can also call using dynamic. $a = new drippy('Hi'); echo "Dynamic: "; $a->zonk(); echo "<p>"; echo "Dynamic Anyway: "; $a->zink(); echo "<p>"; ?> </body> </html>