Created
November 4, 2015 18:50
-
-
Save kingpabel/883e14fc338e88027991 to your computer and use it in GitHub Desktop.
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
<?php | |
//first check is count variable exists and also count variable is not null | |
echo $count ?? $count ?? 10; | |
//output 10; | |
$count = 'data'; | |
echo $count ?? $count ?? 10; | |
//output data; | |
$count = null; | |
echo $count ?? $count ?? 10; | |
//output 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment