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_
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"
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
> 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
>
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
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
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
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
8 matches
Mail list logo