The PHP Ternary Operator: Make Your Short if Statements More Concise and Easier to Read

Опубликовано: 20 Сентябрь 2022
на канале: Dave Hollingworth
3,799
160

If you have a short if / else structure, you might be able to use the ternary operator to make the code more concise and easier to read.

The ternary operator in PHP is used to shorten if / else statements.

Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth

00:00 the ternary operator
00:25 the Elvis operator

#php #shorts #shorthand


Смотрите видео The PHP Ternary Operator: Make Your Short if Statements More Concise and Easier to Read онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dave Hollingworth 20 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,799 раз и оно понравилось 160 людям.