1. What will the following statements generate?
$variable1 = 10;
$variable2 = “10”;
if ($variable1 == $variable2)
echo “Same”;
else
echo “Different”;
An error message will be display
Different
Same
None of the above
2. Which function should be used to read a line from a text
file?
readLine()
fline()
fgets()
fread()
3. 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"];
1. What will the following statements generate? $variable1 = 10; $variable2 = “10”; if ($variable1 == $variable2) ec
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. What will the following statements generate? $variable1 = 10; $variable2 = “10”; if ($variable1 == $variable2) ec
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!