Course 1: How to win friends & develop in PHP
Arrays Level 2: Associative Arrays
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 2

The dog-walking service is a hit! So, we've added Bear to the list:

<?php
$walker1 = 'Kitty';
$walker2 = 'Tiger';
$walker3 = 'Jay';

$dogWalkers = [$walker1, $walker2, $walker3];
$dogWalkers[] = 'Bear';
?>

What array key will PHP automatically assign to Bear?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.