Why without break it show 2 result?


#1







<?php
$A=2;
switch($A){
case 2;
echo "I";
case 4;
echo "you";
break;
default:
echo "he";
}
?>


#2

@betaslayer56599,
This is a so-called fallthrough
Do a google search
== discussions / opinions ==
php switch fallthrough site:stackoverflow.com
and read through some article's