Tidy ob_tidyhandler
(PHP 5, PHP 7, PHP 8)
ob_tidyhandler — 버퍼를 복구하는 ob_start 콜백 함수
설명
ob_tidyhandler(string $input
, int $mode
= ?): string
버퍼를 복구하기 위한 ob_start()에 대한 콜백 함수.
매개변수
input
- 버퍼.
mode
- 버퍼 모드.
반환 값
수정된 버퍼를 반환합니다.
Examples
예제 #1 ob_tidyhandler() 예제
<?php
ob_start('ob_tidyhandler');
echo '<p>test</i>';
?>
위의 예는 다음을 출력합니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p>test</p> </body> </html>
기타
- ob_start() - 출력 버퍼링 켜기