<?php
/**
 * 
 *
 * @author  kalibora
 * @version $Id$
 *
 * usage:
 *
 */

class Hoge {

    /**
     * constructor
     *
     */
    function Hoge( )
    {
        register_shutdown_function(array(&$this, '_' . __CLASS__));
        echo "'" . __CLASS__ . "' class '" . 
            __FUNCTION__ . "' method called.<br />\n";
    }

    /**
     * destructor (emulate)
     *
     */
    function _Hoge( )
    {
        echo "'" . __CLASS__ . "' class '" . 
            __FUNCTION__ . "' method called.<br />\n";
    }
}
?>