SHARE
TWEET

PHP "break", "continue" indentation bug

a guest Nov 5th, 2012 89 Never
  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. };
RAW Paste Data
Top