I came across a problem where I had the requirement that I need to continuously parse some information from some source and after checking some conditions I had to continuously render data at Browser end. So, I tried to do a POC around this in PHP and after few google searches around this I came up with the following piece of code: