You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble determining if an object has a property:
if (!empty($deal->start_date)) {
echo$deal->start_date; //outputs nothing, does not enter the if
}
$start_date = $deal->start_date;
if (!empty($start_date)) {
echo$deal->start_date; //outputs the deal start date, enters the if
}