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".
最終更新日時: 2019年 02月 23日(Saturday) 10:10