PHP Generators: the power of yielding
Sep04

PHP Generators: the power of yielding

  PHP generators are awesome I’m not sure if you heard but PHP 5.5 is going to support generators. This is fantastic news if you ask me. Here is some of the syntax you will be seeing in future releases, taken from the link the above: Yield syntax The newly introduced yield keyword (T_YIELD) is used both for sending and receiving values inside the generator. There are three basic forms of the yield expression: yield...

Read More