18

According to Wikipedia, the binary operator ?: is

colloquially referred to as the Elvis operator due to its resemblance to an emoticon.

My question is:

  • Does the name have anything to do with Elvis Presley?
  • How exactly does it resemble Elvis?
ebvtrnog
  • 4,167
  • 4
  • 31
  • 59
  • Read the links in Wikipedia article, the first one is http://stackoverflow.com/questions/1993409/operator-the-elvis-operator-in-php – CiaPan Mar 07 '16 at 12:49
  • @CiaPan Just deleted my answer, because that [first answer](http://stackoverflow.com/a/1993455/15393) has an awesome image, that explains it perfectly! – RB. Mar 07 '16 at 12:50
  • Thank you guys! If someone wants to get an accepted answer, please add it below :) – ebvtrnog Mar 07 '16 at 12:53

1 Answers1

30

Yes, it relates to Elvis Presley because it kinda resembles his hair style:

Elvis emoticon

Reference: https://stackoverflow.com/a/1993455/432311

rmp251
  • 5,018
  • 4
  • 34
  • 46