PHP PHP Basics Daily Exercise Program Conditionals

Sara Mørk
Sara Mørk
2,246 Points

I am not sure what is meant by "using the correct casing" in this case.

I assumed the logic was right, but I keep getting a Error/Bummer back- telling me that I have to make sure I use the correct casing.

I am not sure what is going wrong here.

I thought that PHP was more relaxed than JS when it comes to casing (as in, JS strictly uses camel casing- or is this not the right casing the error is talking about?)

index.php
<?php
$studentOneName = 'Dave';
$studentOneGPA = 3.8;

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

//Place your code below this comment
if ($studentOneGPA == 4.0) {
  echo "$studentOneName made the honor roll";
} else {
  echo "$studentOneName has a GPA of $studentOneGPA";
}

if ($studentTwoGPA == 4.0) {
  echo "$studentTwoName made the honor roll";
} else {
  echo "$studentTwoName has a GPA of $studentTwoGPA";
}

?>

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 35,881 Points

In the challenge honor roll is capitalized Honor Roll.