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 Company679 that will be contain similar elements from previous labs.
Create 3 variables/properties at the top of the class:
public property $coname1 with an initial value of 'Vacay_R_Us' private property $coaddr1 with an initial value of '654 Oak Ct' private property $co_city1 with an initial value of 'Miami FL 33101'
Copy and paste the functions getHeader509(2 parameters) and getFooter824(1 parameter) from previous work INTO the class. Do NOT change the name of the functions, keep the 3 digit number at the end of each function name.
The code in getHeader509 should not change much at all, but the code inside getFooter824 must use $this-> to access the new variables. DO NOT pass extra parameters or use globals inside getFooter824. A function inside a class is often refered to as a method.
Create a $object906 variable and assign it an OBJECT. Use the object variable $object906 to execute the methods and pass the company name parameter.
Call and print the method getHeader509 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 getFooter824(use the object).
Add an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!