php how to know if value in an array empty or null code example Example: array empty check in php if (empty($array)) { // list is empty. }