Re: SV: [PHP-DEV] Structures and PHP

2002-09-02 Thread Terrence Cox
> Play PHP by its own rules and use the language contructs made available to > you. > No thanx! I love php, but I"m not going to let it keep me in a play pen. A language should have the flexibility to facilitate many different approaches. That's how I allways thought, and still think, of PHP.

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 t

[PHP-DEV] Structures and PHP

2002-09-02 Thread Terrence Cox
Knowing that I can't create actual structures in PHP, I recently realized I could do something like this. 0, host => "", u_name => "", pass => "", db => "" ); return $struct_array; } $db_struct = create_Struct($db_struct); $db_pointer = &$db_struct; print