How Can I Capture Echo function As Variable

How can i capture echo function as variable without printing it


ob_start();
echo "test test test test test";
$output = ob_get_clean();
ob_end_clean();

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments