Q. What will be the output?
Code:
$a = fopen('test.txt', 'w');
echo is_resource($a);
β
Correct Answer: (A)
1
Explanation: fopen returns resource on success.