Skip to content

Instantly share code, notes, and snippets.

@stuartjnelson
Created February 10, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartjnelson/c675a2ddf824eb827431 to your computer and use it in GitHub Desktop.
Save stuartjnelson/c675a2ddf824eb827431 to your computer and use it in GitHub Desktop.
Sublime Text Snippet PHP Ternary Statement
<snippet>
<content>
<![CDATA[
\$var = ( !empty( \$my_var ) ) ? \$my_var : 'default value';
]]></content>
<tabTrigger>ternary</tabTrigger>
<scope>source.php</scope>
<description>ternary …</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment