Re: Help with classes (oop)

From: Date: Mon, 03 Feb 2003 19:35:57 +0000
Subject: Re: Help with classes (oop)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134167@lists.php.net to get a copy of this message
Apparently it does not like the function name to be the same as the class name. So change one of them.
<? php; class first {
        var $age;
        var $name;
        function first($age, $name)
        {
                return $age.$name;
        }
} //main script $first = new first; $test=$first->first(35, "chris"); print $test; ?>


« previous php.general (#134167) next »