I have the following code:
$data[\'x\'] = $this->x->getResults(); $data[\'y\'] = $data[\'x\']; //some code here to modify $data[\'y\'] //this cause
Not simple. Read about clone
BUT! if your elements are not objects and not refence type variables you have no problem.
Example for reference types:
$v=11; $arr[]=&$v;