In my database wrapper, I have this code here:PHP Manual wrote: ... isset() will return FALSE if testing a variable that has been set to NULL ...
Code: Select all
function field($key)
{
if ( isset($this->rowї$key]) )
{
return $this->rowї$key];
}
trigger_error('The specified field `' . $key . '` does not exist.', E_USER_ERROR);
return false;
}So how do I determine if a variable is actually SET, with null being an acceptable value?