search

Home  >  Q&A  >  body text

Has anyone seen this used in a class? I have learned a lot

123.png

寻觅 beyond寻觅 beyond2646 days ago1322

reply all(3)I'll reply

  • 沉睡の黑暗

    沉睡の黑暗2017-09-25 12:04:58

    It should be $this->age;

    In fact, you can also use the magic method __construct($age), so new test(20) will be fine;

    reply
    0
  • 森

    2017-09-25 09:34:18

    $this->test-> age What the hell is this

    reply
    0
  • PHP中文网

    PHP中文网2017-09-25 09:26:13

    $this->test-> What the hell

    reply
    0
  • 寻觅 beyond

    I don’t understand what is going on, but why can the program still run? Just a warning, not a fatal error

    寻觅 beyond · 2017-09-25 20:29:34
  • Cancelreply