Are there pointers in php?

后端 未结 9 1885
余生分开走
余生分开走 2020-11-28 04:06

What does this code mean? Is this how you declare a pointer in php?

$this->entryId = $entryId;
9条回答
  •  孤城傲影
    2020-11-28 04:09

    That syntax is a way of accessing a class member. PHP does not have pointers, but it does have references.

    The syntax that you're quoting is basically the same as accessing a member from a pointer to a class in C++ (whereas dot notation is used when it isn't a pointer.)

提交回复
热议问题