Assume given the following PHP variable: Snum=10. Show the output produced by each of the following statements: a) echo
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Assume given the following PHP variable: Snum=10. Show the output produced by each of the following statements: a) echo
Assume given the following PHP variable: Snum=10. Show the output produced by each of the following statements: a) echo "Snum pounds": b) echo "$num pounds'; Question 19 (10 pts) Given the following associative array, a) write a PHP statement to display the score of Peter. (4 pts) b) Use the foreach loop to display the name of each student followed by a colon() which is followed by his score. (6 pts) $score = array("Peter" => 75, "Mark" => 90, "Ann" => 85,"Sofie" => 60); Question 20 (6 pts) Assume given the following <form> element, Write the statements used in the PHP program example.php to display Che values sent to the browser in the corresponding query string. <form method="post" action="example.php"> Name: <input type="text" name="product"> quantity: <input type="number" name="qty"> <input type="submit"> </form>
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!