<?php
function dna($answer) {
switch ( $answer ) {
case 56:
echo 'Foo';
// fall through
default:
echo 'Bar';
break;
case 42:
echo 'Baz';
// fall through
case 999:
echo '!';
}
}
dna(42);
echo PHP_EOL, '---', PHP_EOL;
dna(1000);
Baz!
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rm72I on line 20
PHP_EOL---
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rm72I on line 20
PHP_EOLBar