Php functions strcmp, strcasecmp and other from this family are binary-safe.
Are operators == and === binary-safe?
And if yes what should be used in binary-safe string comparison: functions or operator?
(binary-safe: "operator or function that can be applied to variables without altering their current state")