Reference no: EM133940766
Working with PHP scripting.
1. Creat a PHP script called 'math2' use the correct file extension.
Screen Capture of commands/ results:
a. Create two variables on this page called:
i. numOne with a value of 3
ii. numTwo with a value of 8
2. Create a PHP script called 'results' use the correct file extension.
Screen Capture of commands/ results:
a. Append the code from the 'math2' file into the 'results' file using the correct command
Screen Capture of commands/ results:
b. Create a loop that will iterate 'numTwo' times. (You must use the variables 'numOne' and
'numTwo' in the loop.)
i. Use the best loop for the job
ii. Loop is to start at '-1' and loop until 'numTwo'.
iii. Through each iteration of the loop, multiply the current loop count with 'numOne'
iv. Display each result on a new line in the form: '0 x 10 = 0'
v. When the count reaches three, display 'Your first name' instead of the actual result
vi. When the count reaches six, display 'Your first name' instead of the actual result
e.g. 0 x 10 = 0
1 x 10 = 10
2 x 10 = 20
Leonard
4 x 10 = 40
Screen Capture of commands/ results: