php에서 echo함수를 사용하여 출력을 할 때 매번 하나씩 출력하는 것이 아니라 모았다가 한꺼번에 출력해주는 버퍼링 기능을 하는 함수가 있습니다.
사용 예:
<?php
// Start buffering
ob_start();
echo 'Print to the screen!!!';
// Get value of buffering so far
$getContent = ob_get_contents();
// Stop buffering
ob_end_clean();
// Do stuff to $getContent as needed
// Use it
echo 'Now: ' . $getContent;
?>
등록된 댓글이 없습니다.