Jake -- ...and then Jake McHenry said... % % > -----Original Message----- % > From: Jake McHenry [mailto:[EMAIL PROTECTED] ... % > > -----Original Message----- % > > From: David T-G [mailto:[EMAIL PROTECTED] ... % > > ...and then Jake McHenry said... ... % > > % % > > % Basically, some lines have 2, some only have the first, % > > only the % second will ever be empty. % > > % > > Question: is it empty or is it actually undefined? ... % > % > You asked is it empty or actually undefined...? I showed you % > the csv file, and the output of print_r... You tell me.. I % > don't know.. Lol
*grin* OK; fair enough. I *thought* that it was defined but wasn't sure. % > ... % % I got it... It wasn't being showed, but $value[1] only contained the % newline \n character if there wasn't anything to fill it from the csv % file. Aha! % % I changed my if condition to if ($value[1] == "\n") and it then went % inside the condition. You might prefer to trim() your input and go back to "" instead. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature