parent
05e0568ef1
commit
3cf7e93a10
23
Reftest.php
23
Reftest.php
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Test
|
||||
{
|
||||
protected $filters = array();
|
||||
|
||||
public function work()
|
||||
{
|
||||
foreach ($this->getFilters() as $key => &$value) {
|
||||
$value = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public function &getFilters()
|
||||
{
|
||||
return $this->filters;
|
||||
}
|
||||
}
|
||||
|
||||
$x = new Test();
|
||||
$b =& $x->getFilters();
|
||||
$b[1] = 0;
|
||||
var_dump($b, $x->getFilters());die;
|
Loading…
Reference in New Issue