Question: 1. Create a new PHP document called conditionalscript.php 2. Use the html template to include doctype declaration, html element, head, and body elements. 3. Create
1. Create a new PHP document called conditionalscript.php 2. Use the html template to include doctype declaration, html element, head, and body elements. 3. Create a script section in the body that includes the following code but replace the conditional expression with an if...else statement.
$IntVariable = 75;
($IntVariable > 100) ? $Result = 'IntVariable is greater than 100' : $Result = '$IntVariable is less than or equal to 100';
echo "
$Result
";?>
Can someone help me with this and explain it to me step by step and why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
