Future Web Services
  • Home
  • Services
  • Projects
  • Blog
  • Contact Us
Select Page

PHP Ternary Operator If/Else Shorthand Example

Sep 21, 2018 | Coding, Web Design | coding, php, shortcuts

The PHP ternary operator is a shorthand way of writing an if/else statement. The logic of the Ternary Operator is // basic ternary logic $result = (condition) ? return if true : return if false ; A working example would be something like // working example of ternary...

Categories

  • Coding (1)
  • MySQL (1)
  • SSH (1)
  • Web Design (2)

Tags

coding (2) Database (1) MariaDB (1) MySQL (1) php (1) Replace (1) server management (1) shortcuts (1) ssh (1) Update (1) WHM (1)

Future Web Services

Web Development in Birmingham