Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the result of the following PHP code? $age = 1 8 ; if ( $age > 1 5 ) { print (

What is the result of the following PHP code?
$age =18;
if($age >15){
print("you are older than 15");
} else if ($age >16){
print("you are older than 16");
} else if ($age >20){
print("you are older than 20");
} else {
print("you are 15 or less");
}
a. It prints "you are older than 15"
b. It prints "you are older than 16"
c. It prints "you are older than 20"
d. It prints "you are 15 or less"
e. It prints "you are older than 15" AND "you are older than 16"
f. It prints nothing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions