Reputation: 1568
if I return from a getter and nothing is set for it, what variable type is returned?
like
$nb = $prod->getNewDate();
assume nothing is set for new date. what is $nb? null?
Upvotes: 1
Views: 458
Reputation: 17895
Just use var_dump()
on the variable and it will tell you what it is, NULL in this case.
Upvotes: 4