Well, I could not find a more specific title for my question, my question is simple. I'm not going to decorate much. Come on.
Which of these two are correct:
No return false
;
public static function select($query, $array)
{
if (!is_array($array))
{
die('Database select: Parameter two is not an array');
}
}
With return false
;
public static function select($query, $array)
{
if (!is_array($array))
{
die('Database select: Parameter two is not an array');
return false;
}
}
I would like explanations if any is incorrect, in my point of view the second option is unnecessary because die
already makes the application stop is not it? or with return false
is it safer for it not to continue?