Intermediate PHP
Q85 / 100

What is PHP's output buffering?

Correct! Well done.

Incorrect.

The correct answer is B) ob_start() captures all output to a buffer, allowing modification or capture before sending to the client

B

Correct Answer

ob_start() captures all output to a buffer, allowing modification or capture before sending to the client

Explanation

ob_start(); echo "Hello"; $content = ob_get_clean(); captures "Hello" without sending it. Used for template engines and testing.

Progress
85/100