Op vrijdag 12 mei 2006 19:18, schreef Moshe Weitzman:
$result = db_query('something'); while ($data = db_fetch_array($result) { $return[$data['some_key']] = $data; }
If you read the code, you will find that I do nothing more then this. I do not call this "noise". IMO this is all about "shortcuts", If Drupal "forces" us to write: $result = db_query('something'); while ($data = db_fetch_array($result) { $return[$data['some_key']] = $data; } twenty times. Then IMO Drupal Does a very Bad Job. That is all. I presented a solution to an itch that itches me. Nothing more nothing less. Feel free to call it "a memory drain". But also feel free to call it "usefull". And above all:These endless and *extremely* annoying discussions are the one and only reason this is not a patch for core but a helper function in the herlpers module. And yes, please contribute to that. the only thing id like to see is sone "patch history" to make sure we dont end up with a complete crappy helper module. Bèr