Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-04 Thread Stuart Dallas
On 4 Sep 2013, at 00:03, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, September 03, 2013 2:37 PM To: Daevid Vincent Cc: php-general@lists.php.net; 'Jim Giner' Subject: Re: [PHP] refernces, arrays, and why does

Re: [PHP] refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Stuart Dallas
On 3 Sep 2013, at 02:30, Daevid Vincent dae...@daevid.com wrote: I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the id of the result set row. This is the basic gist of it: private

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
EUREKA! -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, September 03, 2013 6:31 AM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] refernces, arrays, and why does it take up so much memory? On 3 Sep 2013, at 02:30, Daevid

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Stuart Dallas
On 3 Sep 2013, at 21:47, Daevid Vincent dae...@daevid.com wrote: There were reasons I had the $id -- I only showed the relevant parts of the code for sake of not overly complicating what I was trying to illustrate. There is other processing that had to be done too in the loop and that is also

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
-Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, September 03, 2013 2:37 PM To: Daevid Vincent Cc: php-general@lists.php.net; 'Jim Giner' Subject: Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED] On 3 Sep 2013, at 21:47

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
-Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Tuesday, September 03, 2013 4:03 PM To: php-general@lists.php.net Cc: 'Stuart Dallas' Subject: RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED] $this-tmp_results[$k]['g

[PHP] refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the id of the result set row. This is the basic gist of it: private function _normalize_result_set() {