Home | Computer Science

Write a programmer using switch

<html>
<body>
<?php
function bre(){
$a;
for($a=0;$a<=5;$a++){
echo $a;
if($a==3)
    break;}
}
bre();
?>
</body>
</html>

Output:-
val is 0val is 1val is 2val is 3

 Write a programme using switch

<html>
<body>
<?php
function con(){
$a;
for($a=0;$a<=5;$a++){

if($a==3)continue;
echo $a;}
}
con();
?>
</body>
</html>

output:-

01245