Hello, 

I was wondering if somebody would mind explaining this to me, is there a
big difference or requirement to pre defining variables your going to
use in a class eg: 

class name {
        $var1 = '';
        $var2 = '';
        
        function blah(){
                $var2....
        }
   }//-- End class  

Or is this also right 

class name {

        function name(){
        
          $this->var1 = '';     
          $this->var2 = '';
                }       
        function blah(){
                ....
                }
        }//-- End class


Thanks 
Jarratt

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

Reply via email to