Problem php exercise, bug?


#1

the website say it sy the wrong phrase, but it's exactly the same :confused: bug ?


<html>
  <head>
    <title>The Shape of Things to Come</title>
  </head>
  <body>
    <p> <?php
    class Shape {
    public $hasSides = true;
    }

    class Square extends Shape {

    }

    $square = new Square();
    // Add your code below!\
if (property_exists($square, "hasSides")) {
      echo "J'ai des c么t茅s !";
    }
  ?>
</p>
  </body>
</html>


#2

Not sure if this is a flaw in the SCT, but in a short time we will never know as this course is being sunsetted.

echo "J'ai' des c么t茅s !";

#3

well it's working, thanks


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.