== kiểm tra giá trị có bằng nhau không nhưng cho phép chuyển đổi kiểu dữ liệu.
Ví dụ "5" == 5 trả về true vì PHP tự đổi chuỗi thành số.
Both are comparison operators but with different strictness. == checks if values are equal but allows type conversion.
- For example,
"5" == 5returns true because PHP converts the string to a number. - The
===(strict equal) checks both value AND type, so"5" === 5returns false. - Always use
===in production code to avoid unexpected type juggling bugs and improve code clarity.