Question: Write a php script that assigns values to 4 variables. (Have the variables be of different types -- a string, an integer, a boolean, a
Write a php script that assigns values to 4 variables. (Have the variables be of different types -- a string, an integer, a boolean, a floating point).
Your page should show the values of the variables in a table, where the first row has two columns (column 1 holds the number 1 and column 2 hold the value of your first variable), the second row has two columns (column 1 holds the number 1, and column 2 holds the value of your second variable)...etc. So your table has a total of four rows, with 2 columns in each row.
To create the table, YOU CAN USE ONE OF THE FOLLOWING TWO METHODS:
1. echo all the html needed for the table, and have your entire file be inside php tags.
2. have the table in html and put short php scripts into the table data (the short php scripts will just echo the variable values)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
