Quote:
Originally Posted by The-Ensemble
Nope, empty. I normally would of thought it'd be something like
PHP Code:
if(empty($var))
{
error message
}
But I've no idea how to apply that to a foreach and Its not a variable.
|
If it's not a variable, then it can't be applied with the foreach language construct. That's what's giving you the error. If the supplied var is empty, foreach just skips it.