Question
Please use PHP to write the code: Declare an associative array named $company and initialize it with the above data. Write a function that returns
Please use PHP to write the code:
Declare an associative array named $company and initialize it with the above data.
Write a function that returns a new associative array of project and employees. For example,
[A => [Tom, Peter, Lily, Dave, Carl], B=> [Jim, Nanct, Ping]
function getEmployeesByProject($company)
Write a function that returns a new associative array of employees who have the highest salary in the
department E.g [Engineering => [Jim => 6000], Marketing => [Dave => 7500] ]
function getHighSalaryEmployeeByDept($company)
Write a function that prints the contents of the entire $company in a nice HTML table.
function printStore($company)
Assume that a company has the following inventories: Department Group Employee Engineering Hardware Tom Project JA Jim Software Peter Lily Nancy Carl Dave Ping Salary 5000 6000 5000 3000 14500 6000 Marketing America 7500 Asia 4500Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started