php4 - Should i use global variables in this case?
<pre><code>&lt;?php
    global $words;

    class A {

        function say()
        {
            global $words;
            $words = 'man';
            A::hello();
            A::bye();

            echo $words;
        }

        function hello(){
            global $words;
            $words .= 'hello';
        }

        function bye(){
            global $words;
            $words .= 'bye';
        }

    }
    A::say();
?&gt;
</code></pre>

<p>i think it is stupid, Can you pointed me a good way ?</p>
