Say this is my class....
<?php
class XXX
{
public static $dbConnection;
public static function initiate()
{
$dbConnection = mysql_connect("localhost", "xxx", "xxx");
}
public static function terminate()
{
mysql_close($dbConnection);
}
}
?>
Now this is the PHP that uses it...
<?php...