98
numb3rs
7y

Me whenever I'm programming 😂

Comments
  • 0
    Drop the semicolon :)
  • 7
    This is more commonly called the ternary operator rather than inline if, but that probably varies between languages to be fair 🙂
  • 2
    @Jamoyjamie so useful for keeping code clean though 🙂
  • 1
    It can get ugly very fast 🤣
  • 4
    IMO it's only better for choosing between two values/variables. If used for more complex logic, I prefer the full if statement.
  • 0
    My favorite php buddy is the Elvis operator!
Add Comment