Are there pointers in php?

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

    PHP passes Arrays and Objects by reference (pointers). If you want to pass a normal variable Ex. $var = 'boo'; then use $boo = &$var;.

提交回复
热议问题