Re: randomly picking a variable from an array

From: Date: Fri, 07 Sep 2001 21:32:24 +0000
Subject: Re: randomly picking a variable from an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66481@lists.php.net to get a copy of this message
> Which is more resource attentive however (Random question, not necessarily > pertaining to this)? > > Making MySQL do extra work or PHP do some extra work? Generally it would be more efficient to have MySQL do it as part of its SELECT. But there could be cases where it would be more efficient to do it in PHP. Really depends on what you are doing. Try benchmarking both. -Rasmus

« previous php.general (#66481) next »