PHP syntax for dereferencing function result

后端 未结 22 860
不知归路
不知归路 2020-11-22 02:14

Background

In every other programming language I use on a regular basis, it is simple to operate on the return value of a function without declaring

22条回答
  •  盖世英雄少女心
    2020-11-22 02:42

    If it is just aesthetic, then the Object notation will work if you return an object. As far as memory management goes, no temporary copy if made, only a change in reference.

提交回复
热议问题