Skip to content
Quiz · Arrays · lesson 5 of 8

Quiz — keys and how an array is built

Question 1 of 2

What does the program print?

PHP
<?php

$a = [];
$a['8'] = 'x';
$a[8] = 'y';
$a['08'] = 'z';
$a[] = 'w';
echo count($a), ' ', implode(' ', array_keys($a)), "\n";