Question: PHP 1. Print out information of PHP use phpinfo() function. 2. Write a program that check and print odd/even numbers (from number 1 to 100

PHP PHP 1. Print out information of PHP use phpinfo() function. 2. Write

1. Print out information of PHP use phpinfo() function. 2. Write a program that check and print odd/even numbers (from number 1 to 100 using for/while loop). Display the results within an HTML table with 2 columns as shown below: NUMBERS RESULTS ODD EVEN ODD HINT: use

tags to create a table,
tags for 'Numbers' and 'Results". Wrap code PHP inside HTML code. For example: CHECK ODD or EVEN ";
1 Odd
3. Do the following steps in one.php file and try to manage the output to be clear to see: a. Create a dimensional associative array that has at least 8 key element pairs and var_dumpthe array. b. Print out the array in a table with keys and values (like you do in question 1). c. Use assort() function to sort the array in ascending order based on the value and var_dumpthe new array. d. Use unset() function to remove an element by key from the array then print the modified array by use var_dump() function. HINT: unset(Smy_array['key'])

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 Databases Questions!