Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Shorthand If, Else

DZone's Guide to

Shorthand If, Else

·
Free Resource

echo ( $color == 'green' ) ? 'Green' : 'Not Green';
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}