Are there pointers in php?

后端 未结 9 1880
余生分开走
余生分开走 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:28

    To answer the second part of your question - there are no pointers in PHP.

    When working with objects, you generally pass by reference rather than by value - so in some ways this operates like a pointer, but is generally completely transparent.

    This does depend on the version of PHP you are using.

提交回复
热议问题