Re: SQL Functions

From: Date: Tue, 10 Aug 2004 15:43:11 +0000
Subject: Re: SQL Functions
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-193294@lists.php.net to get a copy of this message
On Tue, 2004-08-10 at 08:33, John Nichel wrote: > John W. Holmes wrote: > > > > Change that to: > > > > $array = array(); > > $results = mysql_query( $sql, DB::connect() ); > > while($data = mysql_fetch_array($result)) > > { $array[] = $data; } > > > > return $array; > > Would there be any speed/performance issuse with using something like... > > array_push ( $array, $data ); > > vs. > > $array[] = $data; Run some tests and let us know. ;-) I'd be interested in knowing as well. -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | robby@planetargon.com * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development ****************************************/

« previous php.general (#193294) next »