πŸ“Š PHP
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

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