PHP PHP Basics Daily Exercise Program Conditionals

How would I loop this? How did what I just watched in the video prepare me for this? May I get a clue?

I will watch the video again and see if I get a clue.

$studentOneName = 'Dave';
$studentOneGPA = 3.8;

$studentTwoName = 'Treasure';
$studentTwoGPA = 4.0;

//Place your code below this comment

if ($studentTwoGPA == 4.0) {
  $name = $studentTwoName;
  echo '$name made the Honor Roll';

} else ($student


I got it. They want you to compose an if/else statement for each.

3 Answers

Two if statements?

Yes, Piotr; that is what the course wanted. Thanks!

Best answer