This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Objects in PHP Forum

View Course » View Exercise

477 points
Picture
Submitted by
Christian Higgins
about 4 years ago

Add a pair of<?php ?> tags in line 9.

Hung up on the wording of this:

Does mean it should look like <?php ?> <?php ?>


1 vote

permalink

    <?php
    // The code below creates the class
    class Person {

    }

    //Create two instances
    $teacher = new Person();
    $student = new Person();

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
about 3 years ago

1 Comment

C7ddc4ab993445730f73299138b65fa3?s=140&d=retro lmn over 2 years ago

?> - forgot at the end


-1 votes

permalink

Hello,
of course it doesn't. :-)
Would you mind to suggest a better wording?

3108 points
5154c6cf115b457ac9000021_667301409
Submitted by
boring12345
about 4 years ago

4 Comments

Picture Christian Higgins about 4 years ago

I would say just drop the "a pair" part so there's no confusion. If I'm playing poker and I say I have "a pair of nines," it means I have two nines. I wouldn't say I have "a pair of nine and five."

6e9943ca2933a1caf281e06d71762eca?s=140&d=retro Adamace almost 4 years ago

no it should like this as simple instruction and syntax <?php ?>

9096a08895071916a6a6ea7e52819020?s=140&d=retro Peter A Edwards over 3 years ago

I agree with Christian Higgins on this.

543fc82f631fe988640020d7_382532424 Tobias Páez about 3 years ago

The right code is beneath, check it out: