1. What will the following statements generate? $variable1 = 10; $variable2 = “10”; if ($variable1 == $variable2) ec

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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"];
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply