πŸ“Š PHP
Q. What will be the output?
Code:
$a = fopen('php://memory', 'r+');
fwrite($a, 'Hello');
rewind($a);
echo fread($a, 5);
  • (A) Hello
  • (B) Error
  • (C) NULL
  • (D) Empty
πŸ’¬ Discuss
βœ… Correct Answer: (A) Hello

Explanation: Memory stream works like file.

Explanation by: Roshan
Memory stream works like file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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