PHP Classes

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

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/original/comments.php  >  Download  
File: phpcf-src/test/original/comments.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: 8 years ago
Size: 555 bytes


Class file image Download
# forbidden comment starting with '#'
// single-line comment with indentation level 0
echo 'Hello world 1!';

'Hello world 2!'; // single-line comment after a statement with indentation level 0

// another single-line comment with indent level 0 and spaces after it
    // single-line comment with indent level > 0
// echo 'Hello world 3!'; // this line must be preserved as-is
do_something_other(); // single-line comment with indent level > 0 after statement
echo 'I am weasel';

For more information send a message to info at phpclasses dot org.