search

Home  >  Q&A  >  body text

PHP class variable calling problem

< /p>

< /p>

Is there any problem with writing like this?

仅有的幸福仅有的幸福2831 days ago313

reply all(3)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:10:57

    $this->file_path

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:10:57

    $this->$file_path
    How to write

    ? ? Grammatical error?

    $this->file_path;

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 13:10:57

    There is an extra $. Using an IDE like phpstorm should be able to prompt such an error.

    reply
    0
  • Cancelreply