Created
February 10, 2016 16:45
-
-
Save stuartjnelson/c675a2ddf824eb827431 to your computer and use it in GitHub Desktop.
Sublime Text Snippet PHP Ternary Statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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