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:10 AM