Skip to content
Quiz · Conditions · lesson 8 of 8

Quiz — switch and match

Question 1 of 3

What does the program print?

PHP
<?php

$code = '2';
switch ($code) {
    case 2:
        echo 'two';
    case 3:
        echo 'three';
        break;
    default:
        echo 'other';
}