test if array is empty or not on i t php code example Example: array empty check in php if (empty($array)) { // list is empty. }