[PHP] Hướng dẫn kiểm tra array rỗng hay null không?
1) Recheck array is empty or null Link: https://www.geeksforgeeks.org/how-to-check-whether-an-array-is-empty-using-php/ Cách 1: Cách 2 Cách 3: 2) Removing key that has a null value in an array Tiếp theo là phần khác (update Mon 13 Dec 2021) Xoá key và value nếu value bằng null https://stackoverflow.com/questions/4352203/any-php-function-that-will-strip-properties-of-an-object-that-are-null Mình thấy kiểu trên khá hay