RE: [PHP] New problem - HELP!
| From: | Chris W. Parker | Date: | Thu, 13 Nov 2003 23:25:03 +0000 |
| Subject: | RE: [PHP] New problem - HELP! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-169607@lists.php.net to get a copy of this message | ||
Jake McHenry <mailto:linux@nittanytravel.com>
on Thursday, November 13, 2003 3:12 PM said:
> 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
:\
What you can do is try different comparisons for the if statement until
it works.
if(isset($value[1]))
{
// do stuff
}
AND
if(empty($value[1]))
{
// do stuff
}
if($value [1] == NULL)
{
// do stuff
}
Your if statement is absolutely being executed, it's just not resulting
in the answer you want.
Chris.
p.s. Trim your posts.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/