PHP references (ampersand)

This question already has an answer here:

  • What does it mean to start a PHP function with an ampersand? 2 answers

  • Returning by reference is useful when you want to use a function to find to which variable a reference should be bound. Do not use return-by-reference to increase performance. The engine will automatically optimize this on its own. Only return references when you have a valid technical reason to do so. To return references, use this syntax:

    From the PHP manual Returning References

    链接地址: http://www.djcxy.com/p/57250.html

    上一篇: 在PHP中为函数名添加'&'是什么意思?

    下一篇: PHP引用(&符)