blob: e1e93e4c7d12951a251d602a34bd4e02c11ca051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--TEST--
Test extract() function (variation 6)
--FILE--
<?php
/* EXTR_REFS as second Argument */
$a = array ('foo' => 'aaa');
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
$b = $a;
$b['foo'] = 'bbb';
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
var_dump($a);
echo "Done\n";
?>
--EXPECTF--
int(1)
string(3) "aaa"
int(1)
string(3) "bbb"
array(1) {
["foo"]=>
&string(3) "bbb"
}
Done
|