Greetings, all!
I have a question about classes and variables.
When you are working with a class, when should you (or are required) to
declare variables? Is it if you plan on setting a variable from outside
the class as in ( $foo->bar = "data" ), or if the variable is 'created'
inside the class as in ( $this->bar = "data"), or both?
TIA
-Jay
I have a question about classes and variables.
When you are working with a class, when should you (or are required) to
declare variables? Is it if you plan on setting a variable from outside
the class as in ( $foo->bar = "data" ), or if the variable is 'created'
inside the class as in ( $this->bar = "data"), or both?
TIA
-Jay
Comment