LinkedIn PHP Skill Quiz Assessment Answers

Which code would you use to print all the elements in an array called $cupcakes?

Latest Update on 30th December, 2021 by Certification Course Answers

Which code would you use to print all the elements in an array called $cupcakes?

  1. all of the answers
  2. print_r($cupcakes);
  3. var_dump($cupcakes);
  4. foreach($cupcakes as &$cupcake) echo $cupcake;

Correct Answer:

  • all of the answers

Latest Updates

No posts found in this category.