Conditional Statement (Mistake 1)
Refer to the following codes:
- <?php
- $n = "UniSZA";
- if ($n = "UMT")
- {
- echo "UMT is Universiti Malaysia Terengganu";
- }
- else if ($n == "UniSZA")
- {
- echo "UniSZA is Universiti Sultan Zainal Abidin";
- }
- ?>
Post your comments why the result is not correctly displayed as "UniSZA is Universiti Sultan Zainal Abidin".
แก้ไขครั้งสุดท้าย: Saturday, 23 February 2019, 10:10AM