PHP Classes

File: phpcf-src/test/original/yield.php

Recommend this page to a friend!
  Classes of Alex Krash   PHP Code formatter   phpcf-src/test/original/yield.php   Download  
File: phpcf-src/test/original/yield.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 9 years ago
Size: 133 bytes
 

Contents

Class file image Download
<?php

/**
 * Test formatting for "yield" keyword
 */
function generator() {
    for (
$i=0;$i<10;$i++) { yield
   
$i;
    }
}