Last active
June 1, 2019 05:43
-
-
Save hbsnow/92322b76c7d84768692dbab5f6e32cc9 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 | |
function hoge() { | |
echo 'hoge'; | |
return true; | |
} | |
if (true && hoge()) { | |
echo 'hage'; | |
} | |
// -> hogehage | |
if (false && hoge()) { | |
echo 'hage'; | |
} | |
// -> | |
// hoge()は実行されない |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment