Oops, try again. Did you remember to give your new card both a rank and suit (as a string) and a value (as a number)?


#1

Here is my code...
$deck = array(array('2 of Diamonds', 2), array('5 of Diamonds', 5),
array('7 of Diamonds', 7),array('2 of stars', 2), array('5 of spades', 5));

  // Imagine the first chosen card was the 7 of Diamonds.
  // This is how we would show the user what they have:
  echo 'You have the ' . $deck[2][0] . '!';
  ?>

Please debug...


#2

Is this the lesson? https://www.codecademy.com/en/courses/web-beginner-en-QnQrd/0/6?curriculum_id=5124ef4c78d510dd89003eb8

And did you deliberately inject this bit of comedy?


#3

Yes that's the lesson, what is the problem with it please.


#4

What error messages are you receiving (both SCT and Parse errors).