[PHP] Re: opening a big file

2008-04-06 Thread Mr. Shawn H. Corey
On Sun, 2008-04-06 at 22:36 -0400, Richard Lee wrote: > I am trying to open a big file and go through line by line while > limiting the resource on the system. > What is the best way to do it? > > Does below read the entire file and store them in memory(not good if > that's the case).. > > open

[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