Gan, ane ada kesulitan dgn ini, sample: function test($x) { $a = 'kopi'; $b = 'es'; $c = 'teh'; if ($x == 'z' && $a != '') { echo $a; } if ($x == 'y' && $b != '') { echo $b; } else { echo 'saya es'; } if ($x == 'x' && $c != '') { echo $c; } } Output: Text <?php test('z'); ?> text <?php test('y'); ?> text <?php test('x'); ?> Problem: Kenapa else test('y'); selalu muncul di output? Dan kalo else nya di ilangin, outputnya normal. Dimana salahnya? Tolong bantu gan. Thx | |||
pengennya output kya gimana bro? |
Unapzeus Adinovic 03 Jul, 2013
-
Source: http://www.facebook.com/groups/35688476100/?id=10151732208951101
--
Manage subscription | Powered by rssforward.com
Tidak ada komentar:
Posting Komentar