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 | [EMAIL PROTECTED]
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php