12 May
2006
12 May
'06
6:41 p.m.
On 12 May 2006, at 5:03 PM, Earl Miles wrote:
Uggh. Adding extra loops because you don't like 'while' is nothing more than a performance hit that is unnecessary.
Not to mention a memory drain. The only place I could see something like this being useful is everywhere we do : $result = db_query('something'); while ($data = db_fetch_array($result) { $return[$data['some_key']] = $data; } AND NOTHING ELSE. And i don't think 4 (really 3 lines) of code is that much of a schlepp. -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com