Re: Array newbie
| From: | Daniel Convissor | Date: | Fri, 04 Aug 2000 16:25:49 +0000 |
| Subject: | Re: Array newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10165@lists.php.net to get a copy of this message | ||
> It does carry a lot of "baggage" with it though, as I don't need the
> elements, just the references to them.
>
> I'm concerned that I could return an array with large amounts of memory
> tied up.
Not really. Use a query like "select ID from TableName where FieldName =
Condition".
That gives you a result containing just the id numbers. The same as the
array you created though done with a LOT less code and processor time.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409