Question: What value is stored in $result after these PHP instructions are executed? $value1 = 15; $value2 = 10; if ($value1 >= $value2) $value2 = 30;
What value is stored in $result after these PHP instructions are executed?
$value1 = 15;
$value2 = 10;
if ($value1 >= $value2)
$value2 = 30;
$value1 = $value2;
$result = $value1 + $value2;
print("The result is $result");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
