Re: Structures and PHP

From: Date: Mon, 02 Sep 2002 14:45:31 +0000
Subject: Re: Structures and PHP
Groups: php.dev 
Request: Send a blank email to php-dev+get-87790@lists.php.net to get a copy of this message
> Terrence Cox wrote: > > Is there a better way? > > Why not declare a class for this? > Speed! I wrote a load balancer for a pool of replicated db's (using PHP) and I presently use small connection objects to, you guessed it, maintain the connections to the individual machines. However, wouldn't encapsulating that data (information about the db) in arrays (that are like structures) be faster? Then just offload the methods to plain old functions. I want the data encapsulation without the performance hit. Cheers, T...... -- _______________________________________________ Get your free email from http://mymail.operamail.com Powered by Outblaze

« previous php.dev (#87790) next »