If I have the following variable in a class
protected $address
and in a function test
, I do
$testAddress = $this->address;
and then
$testAddress['state'] = 'KO';
Does that change the state for $this->address
... meaning any function that uses $this->address
will have the modified state?