公告
财富商城
积分规则
提问
发文
2020-05-24 19:52发布
做个烂人
I saw some function declarations like this:
function boo(&$var){ ... }
what does the & character do?
&
It is pass by reference.
If you are familiar with C pointers, it is like passing a pointer to the variable.
Except there is no need to dereference it (like C).
最多设置5个标签!
It is pass by reference.
If you are familiar with C pointers, it is like passing a pointer to the variable.
Except there is no need to dereference it (like C).