Re: [PHP] file/array manipulation

2005-03-17 Thread Jochem Maas
Mignon Hunter wrote: Ok I got this to work but I'm not sure how -- and am having trouble re-producing the data: My script I have so far is: $lines = file('test2.csv'); foreach ($lines as $line) { $line_split = explode(",", $line); if(!(empty($line_split[0]) ) ){ //echo "I'm not empty"; $new_

Re: [PHP] file/array manipulation

2005-03-16 Thread Mignon Hunter
Ok I got this to work but I'm not sure how -- and am having trouble re-producing the data: My script I have so far is: $lines = file('test2.csv'); foreach ($lines as $line) { $line_split = explode(",", $line); if(!(empty($line_split[0]) ) ){ //echo "I'm not empty"

Re: [PHP] file/array manipulation[RESOLVED]

2005-03-16 Thread Mignon Hunter
Got it - never mind instead of $new_array = array($line_split[0] => $line_split[1] ); it's $new_array = array($line_split[0] , $line_split[1] ); But I'm still not sure how it works so well... Ok I got this to work but I'm not sure how -- and am having trouble re-p

Re: [PHP] file/array manipulation

2005-03-15 Thread Richard Lynch
> Hello > > I'm trying to manipulate a text(.csv) file using php. I've read the file > and can print each line, > but I need to write where column A is missing > > ColumnAColumnB > > RABC company > ABC company > ABC company >

Re: [PHP] file/array manipulation

2005-03-15 Thread Jochem Maas
Mignon Hunter wrote: Hello Hello Hello Hello (and 1 extra Hello just in case you decide to post the same question for a fourth time) I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O