Tag: yield

  • PHP Generators – an example

    I’ve ignored generators for sometime in PHP, but recently realised why they can be quite handy 🙂 As an example, imagine you are querying a web service, which returns  data in chunks of up to 100 results….