[PHP] Muti-Dimensional Array Help Please

2004-10-07 Thread Nick Wilson
hello all, I have some text files in a directory that contain newline delimited IP addresses. Here is what i would like to do with them, and what i have achieved so far: I read the files into a multi-dimensional array like: (pseudo code) array(IP_blocks) = ( File_number[1] = array('ip1',

RE: [PHP] Muti-Dimensional Array Help Please

2004-10-07 Thread Ed Lazor
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 6:40 AM To: php-general Subject: [PHP] Muti-Dimensional Array Help Please hello all, I have some text files in a directory that contain newline delimited IP addresses. Here is what i

Re: [PHP] Muti-Dimensional Array Help Please

2004-10-07 Thread Nick Wilson
* and then Ed Lazor declared It looks like you're hading in the right direction. You've grabbed an array of each file. Then cycle through that array and read data from each file. The fread function will allow you to pull data from each file line by line, so you can store each line in an