• HomeHome
  • CareerCareer
  • WorkWork
  • MuseumMuseum
  • WritingWriting
  • ContactContact
Writing

If/Else Shorthand in PHP

April 30, 2008

From the archive. I've left this one just as I wrote it.

Ternary Operators in PHP

After I had to re-search for the syntax for the 3rd time, I finally decided to stick a link here for a page that sums it up nicely. http://davidwalsh.name/php-shorthand-ifelse-using-ternary-operators Thanks David!

Joseph R. B. Taylor © 2026