Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about ==== and ===== and ======?

For security reason, I suggest PHP to implement such operators... :D Example:

"abc" === 'abc'; # ==> true

"abc" ==== 'abc'; # ==> false, single-quote vs double-quote

"abc" ===== 'abc'; # ==> true, this is how it works

j.k :D



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: