Created
June 15, 2015 09:24
-
-
Save fkmhrk/c91ef0f8a3f48f2b4b8c 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 | |
// あってそうだけど、だめな例 | |
// 1 : 普通 | |
// 2 : 当座 | |
// 3 : 定期 という対応があるとする。 | |
$bankType = "1"; // DBに入っている銀行口座の種類 | |
$label = ($bankType == '1') ? '普通' : | |
($bankType == '2') ? '当座' : '定期'; | |
echo $label; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment