creating class
| From: | Awlad Hussain | Date: | Wed, 05 Mar 2003 11:27:24 +0000 |
| Subject: | creating class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138250@lists.php.net to get a copy of this message | ||
I am very new to class, trying out this class, but it doesn't seem to display anything?
what i am donig wrong?
<?php
class site_init {
var $midgard; // array
function site_init()
{
echo $this->midgard["host"];
}
?>
i called this class by
$new_midgard = site_init;
it does not seem to print anything.. why?
anyone any idea?
awlad