Do the PHP output buffers record and hold only echoed things inside php, or echoed things AND html code written outside of php tags?

StackOverflow https://stackoverflow.com/questions/17668295

Вопрос

And could I activate output buffers during all my PHP code running, then search and replace things in the entire page like the title or meta description later then when I wrote them in the code ? My code is written after the head and it got pretty complex...

Else do you have solutions ?

Это было полезно?

Решение

It holds all the page data being sent to the client, whether it's written as literal HTML or with echo.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top