DEANO.ME

references

 

Pulling your hair out over this Notice message? Well here is an explanation for why you are getting this and how you can avoid it. Take a look at the following code: <?php class myClass { public $var = 1; public function &getVar() { return($this->var); } } $obj = new myClass; $value = &$obj->getVar(); ?> […]

Share
Share
+1
Tweet
Share
Pin
0 Shares