Question: I need help with the following PHP lab...i will post my code but these are the directions and they has to be worked as directed.
I need help with the following PHP lab...i will post my code but these are the directions and they has to be worked as directed. Please assist and explain where i am going wrong. Directions:Write a class Company that will be contain similar elements from previous labs.
Create variablesproperties at the top of the class:
public property $coname with an initial value of 'VacayRUs private property $coaddr with an initial value of Oak Ct private property $cocity with an initial value of 'Miami FL
Copy and paste the functions getHeader parameters and getFooter parameter from previous work INTO the class. Do NOT change the name of the functions, keep the digit number at the end of each function name.
The code in getHeader should not change much at all, but the code inside getFooter must use $this to access the new variables. DO NOT pass extra parameters or use globals inside getFooter A function inside a class is often refered to as a method.
Create a $object variable and assign it an OBJECT. Use the object variable $object to execute the methods and pass the company name parameter.
Call and print the method getHeader method, pass it the parameters for the company name use the object and the color.
Place two simple
tags between the calls to separate the header and footer.
Call and print the method getFooteruse the object
Add an
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
