Re: [PHP-DEV] Structures and PHP

2002-09-02 Thread Terrence Cox
> 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

Re: [PHP-DEV] Structures and PHP

2002-09-02 Thread Sebastian Bergmann
Terrence Cox wrote: > Is there a better way? Why not declare a class for this? -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List

Re: [PHP-DEV] Structures and PHP

2002-09-02 Thread Markus Fischer
On Mon, Sep 02, 2002 at 10:06:50PM +0800, Terrence Cox wrote : > Knowing that I can't create actual structures in PHP, I recently realized I could do >something like this. > > function create_Struct($struct_array) >{ >$struct_array=array( > conn => 0, > host => "", > u_