首页 > > 详细

辅导UTORIAL 5辅导php、php调试

Semester 1, 2020 Week6
TUTORIAL 5 (WEEK 6)
** Important Information**
Each tutorial work will be checked at tutorial in the following week
ACTIVITIES
PHP
In this tutorial, we are going to practice server-side scripting, PHP. You are required to explore more
about PHP built-in functions to complete this tutorial.
QUESTION 1
Create an array, which contains the information in the below (Use the array() function).
Index 1 2 3 4
array1 red yellow brown green
array2 green yellow black red
array3 red yellow brown black
Write a code to compare the values in array 1, 2, and 3, then output the values which are in array 1,
2, and 3. Your output should be similar or the same with the below.

QUESTION 2
Create an array, which contains the information in the following table (Use the array() function). You
should create multidimensional array.
Name Job Email Rate
John Smith Accountant 70
May Black Business Analyst 40
Tom White Plummer 30
Susan Kim Engineer 80
After completing the array, write an additional code to display the following output.
Semester 1, 2020 Week6
2

OPTIONAL QUESTION
Create multidimensional array, which contains the information in the below.
Order details
Customer Name Product
Today John iPad
Sam Apple watch
Yesterday May MacBook
Sam Apple watch
Peter iPhone
If you are using the same method used in Question 1, it will return below;

You explore and research on how to get the similar output as below:

THEORY
Compare the server-side scripting and client-side scripting with the advantages and disadvantages of
each.

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!