Why use output buffering in PHP?

前端 未结 11 1015
礼貌的吻别
礼貌的吻别 2020-12-09 02:43

I have read quite a bit of material on Internet where different authors suggest using output buffering. The funny thing is that most authors argument for its use only becaus

11条回答
  •  执念已碎
    2020-12-09 03:17

    I use output buffering in order to avoid generating HTML by string concatenation, when I need to know the result of a render operation to create some output before I use the rendering.

提交回复
热议问题