difference between call by value and call by reference in php and also $$ means?

后端 未结 5 1201
说谎
说谎 2021-01-05 07:00

(1) I want to know what is the difference between call by value and call by reference in php. PHP works on call by value or call by reference?

(2) And a

5条回答
  •  离开以前
    2021-01-05 07:56

    Call by value: Passing the variable value directly and it will not affect any global variable.

    Call by reference: Passing the address of a variable and it will affect the variable.

提交回复
热议问题