LinkedIn PHP Skill Quiz Assessment Answers

Which code snippet uses the correct syntax for creating an instance of the Pet class?

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

Which code snippet uses the correct syntax for creating an instance of the Pet class?

  1. $dog = new Pet;
  2. all of these answers
  3. $horse = (new Pet);
  4. $cat = new Pet();

Correct Answer:

  • all of these answers

Latest Updates

No posts found in this category.