/*
* Determine whether something is considered empty/falsy
*/
empty(''); // true
empty('0'); // true
empty(0); // true
empty(null); // true
empty([]); // true
empty(false); // true
empty('false'); // false
empty('true'); // false
## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
// file is empty (and not an error)
}
empty($var):bool
//checks if the variable is empty and returns true or false