-
- $a = array(
- 'a' => 'a',
- 'b' => 'b'
- );
- $b = array(
- 'a' => 'a',
- 'b' => 'b'
- );
- $a['b'] = null;
- unset($b['b']);
- print('
');</li>
<li>print_r($a);</li>
<li>print('<br />');</li>
<li>print_r($b);</li>
<li>print(' ');
- ?>
复制代码
结果:
Array
(
[a] => a
=>
)
Array
(
[a] => a
)
|