php class property declaration problem?

inthisx_00

New member
what's the difference betwwen using declaration and not using declaration??

i think both classes work the same.

class property {

public $var;

function declaration(){
$this->$var='123';
}
}

class property {

function declaration(){
$this->$var='123';
}
}
 
Back
Top