1. 19
    Refactor a PHP if else statement into a ternary
    3m 33s

Refactor a PHP if else statement into a ternary

InstructorMark Shust

Share this video with your friends

Send Tweet

An if statement that depends upon the logic of a boolean can be simplified into something called a "ternary", which can lead to more concise & readable code.