[PHP] Re: Arbitrary mathematical relations, not just hashes

2008-04-07 Thread Jenda Krynicky
From: "Kelly Jones" <[EMAIL PROTECTED]> > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color or type of a given item. > >

[PHP] Re: Arbitrary mathematical relations, not just hashes

2008-04-07 Thread Jenda Krynicky
From: Julian Leviston <[EMAIL PROTECTED]> > You could use ActiveRecord. Without a database? I guess not. You'd still need at least SQLite. But you are right, you could use ActiveRecord to obtain a nice object oriented wrapper around the database so that it doesn't scare you. Or, assuming you do

[PHP] Re: Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mr. Shawn H. Corey
On Sun, 2008-04-06 at 16:52 -0700, Kelly Jones wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color or type of a gi