Page 1 of 1

Assume given the following PHP variable: Snum=10. Show the output produced by each of the following statements: a) echo

Posted: Sun May 15, 2022 8:25 am
by answerhappygod
Assume Given The Following Php Variable Snum 10 Show The Output Produced By Each Of The Following Statements A Echo 1
Assume Given The Following Php Variable Snum 10 Show The Output Produced By Each Of The Following Statements A Echo 1 (36.57 KiB) Viewed 59 times
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>