Page 1 of 1

1. Which PHP statement will store the value into variable $num from the form below? Posted: Sun May 15, 2022 10:02 am

by answerhappygod
1. Which PHP statement will store the value into variable $num
from the form below?
<form method="post" action="findSum.php">
Number : <input type="text" name="num" ><br/>
<input type="submit" value="Add">
</form>
$num = $_POST["text"];
$num = $_POST["num"];
$num = $_GET["num"];
$num = $_FILE["text"];
2. Which function should be used to read a line from a text
file?
readLine()
fline()
fgets()
fread()
3. What symbols can be used for PHP comment?
//
/* */
#
All of the above.