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;
?>




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to