πŸ“Š PHP
Q. Give an example, how to define a constant array in PHP?
  • (A) const cities = new array(["New Delhi","Mumbai","Banglore"]);
  • (B) define("cities"=["New Delhi","Mumbai","Banglore"]);
  • (C) define("cities", ["New Delhi","Mumbai","Banglore"]);
  • (D) define("cities":["New Delhi","Mumbai","Banglore"]);
πŸ’¬ Discuss
βœ… Correct Answer: (C) define("cities", ["New Delhi","Mumbai","Banglore"]);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
165
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate