Thread
:
passing property as an arg. to method???
View Single Post
johnny.dacu
Contributor
4Aug2010,23:28
Well if you want to use a class property in a method use something like this:
PHP Code:
class
A
{
public
$var
=
4
;
public function
xyz
(){
$this
->
var
//here you use your variable
}
}