- var_dump: documentation ( source)
- debug_zval_dump: documentation ( source)
<?php
$n = null;
// initialise an array with reference set
$s = 'some string';
$a[] =& $s;
$a[] =& $s;
$a[] =& $s;
$s =& $n; // so the reference count is clear
debug_zval_dump($a);
var_dump(apc_store('a', $a));
$a = apc_fetch('a');
// modifiy it
$s =& $a[0];
$s = 'other string';
$s = & $n;
debug_zval_dump($a);