Last active
October 9, 2015 04:42
-
-
Save kelvintaywl/52813b4ec3eb19355de4 to your computer and use it in GitHub Desktop.
daily learnings @ gengo
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
$a = 2; | |
$default = 1; | |
// same as the following command: | |
// $b = $a? $a : $default; | |
$b = $a ?: $default; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment