阅读背景:

php根据值复制数组元素,而不是引用

来源:互联网 

I have the following code:

我有以下代码:

$data['x'] = $this->x->getResults();  

$data['y'] = $data['x'];

//some code here to modify $data['y']
//this causes (undesirably) $data['x] to be modified as well
$data['x



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: