Question: Create a PHP class named 'Person' with a constructor that takes two parameters: $name and $age. / / The class should have a method named
Create a PHP class named 'Person' with a constructor that takes two parameters: $name and $age.
The class should have a method named 'introduce' that echoes "Hello, my name is name and I am age years old."
Your task is to complete the code for the 'Person' class and the 'introduce' method. mphp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
