Q. What will be the output?

Code:
$a = fopen('test.txt', 'w');
echo is_resource($a);
  • (A) 1
  • (B) 0
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1
Explanation: fopen returns resource on success.
Explanation by: Roshan
fopen returns resource on success.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
14
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
83%
Success Rate