Hi there,

I'm forgetting something, but I can't seem to get to it... Consider the 
following Class.

class Test
        var $a;
        var $b;

        function Test()
                $this->a = 2;
                $this->b = 5;

        function Show()
                global $a, $b;

                echo("a: ".$a);
                echo("a: ".$this->a);
                echo("b: ".$b);
                echo("b: ".$this->b);

After proper initialisation, calling the function Show() gives:

a: 2
b: 5

What am I forgetting here? Tia for answers!

Kind regards,

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

Reply via email to