PHP 5.5 introduces Generators and the yield keyword, which allows us to write asynchronous code that looks more like synchronous code.
The yield expression is responsible for giving control back to the calling code and providing a point of resumption at that place. One can send a value along the yi...