title: @yield, @section by php ways in custom framework
body: <p>I think that many of you have used laravel framework and know when and how to use @yield, @section.</p>
  
  <p>Now I am writing my own framework and want to implement this feature by <strong>php ways</strong>. I don't want to use any templating scripts (twig, scout or others).</p>
  
  <p>So, how can I implement this feature ?</p>