πŸ“Š PHP
Q. What will be the output?
Code:
echo gettype(NULL);
  • (A) NULL
  • (B) null
  • (C) string
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) null

Explanation: gettype returns 'NULL' lowercase internally shown as 'NULL' or 'NULL string', expected 'NULL'/'null'.

Explanation by: Roshan
gettype returns 'NULL' lowercase internally shown as 'NULL' or 'NULL string', expected 'NULL'/'null'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
5
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
89%
Success Rate