isset empty or ...?
| From: | John Taylor-Johnston | Date: | Sun, 31 Mar 2013 04:53:08 +0000 |
| Subject: | isset empty or ...? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-320718@lists.php.net to get a copy of this message | ||
I'm using
if($mydata->DPRresponselocationaddress1 != "")
is this the same as
if (!isset($mydata->DPRresponselocationaddress))
http://php.net/manual/en/function.isset.php
or
if (!empty($mydata->DPRresponselocationaddress))
http://php.net/manual/en/function.empty.php
or is there another function I have not learned yet? I don't really get the difference between isset and empty.
John