File "DiscourageGotoUnitTest.inc"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.inc
File size: 175 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

goto a;
echo 'Foo';

a:
echo 'Bar';

for($i=0,$j=50; $i<100; $i++) {
    while($j--) {
        if($j==17) goto end;
    }
}
echo "i = $i";

end: {
  echo 'j hit 17';
}