Category: conditional flow

Video: Shorthand if-else Conditionals with PHP

In this screencast I’ll show you how to make your code more succinct by using the ternary operator to write shorthand if-else conditional statements in PHP. Loading the player… jwplayer("video-5663").setup({ image: "https://d3rj1gznkm47xj.cloudfront.net/ec193aec-5bbc-43a7-b6bf-66ca9aad54f6.png", ...