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
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
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
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
-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
-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
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()
{
7 matches
Mail list logo