[TYPO3-commerce] two arrays are the same

René Nagelschmitz rn at intersales.de
Fri Dec 4 11:19:36 CET 2009


Hi all,

I have the folling problem:

$data = array();
$data = 
$this->parseRawData($this->MYSESSION[$typeLower],$this->conf[$typeLower.'.']['sourceFields.']);
$data['country']='asd';

after this three lines of code, changing the $data-array (as seen in the 
third line) changes the $this->MYSESSION[$typeLower]-array in the same 
way. (seams to be that the first array is a pointer to the second 
array.) How can this be? How can I change it?

thanks,

with best regards,

Rene Nagelschmitz


__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4659 (20091203) __________

E-Mail wurde geprüft mit ESET NOD32 Antivirus.

http://www.eset.com




More information about the TYPO3-project-commerce mailing list