Skip to content
Quiz · Variables and types · lesson 2 of 6

Quiz — assigning a variable

What does the program print?

PHP
<?php

$a = 5;
$b = $a;
$a = $a + 1;
echo $a, ' ', $b, "\n";