if (empty(trim($name))) {
continue;
}
Instead, use:
if (empty($name) || trim($name) == FALSE) {
continue;
}
Note: Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error.
if (empty(trim($name))) {
continue;
}
if (empty($name) || trim($name) == FALSE) {
continue;
}
No comments:
Post a Comment