Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PHP "break", "continue" indentation bug

By: a guest on Nov 5th, 2012  |  syntax: PHP  |  size: 0.21 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Notice the number of spaces before the "break" keyword!
  4.  
  5. // Example 1
  6. function() {
  7.     for (;;)
  8.         if (0)            break;
  9. };
  10.  
  11. // Example 2
  12. function() {
  13.     for (;;) if (0)     break;
  14. };