sınıf ve var ve __ yapısı ile sorun

0 Cevap

ben bu kodu var

$test = new test();
$test->var_test = array('one','two');


class test{

    var $var_test = array();


    function __construct(){

     var_dump($this);

    }


}

the var_dump give me the $var_test in null why; i give it the one two values

0 Cevap