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 the individual machines. However

SV: [PHP-DEV] Structures and PHP

2002-09-02 Thread Carsten Gehling
efore need a tool for complex datatypes and/or b) it doesn't implement hashes in its core. - Carsten > -Oprindelig meddelelse- > Fra: Markus Fischer [mailto:[EMAIL PROTECTED]] > Sendt: 2. september 2002 15:16 > Til: Terrence Cox > Cc: [EMAIL PROTECTED] > Emne:

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_

[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