how to check if values of an array are empty code example Example: array empty check in php if (empty($array)) { // list is empty. }