- print_r: documentation ( source)
<?php
// Some variables.
$france = 'France';
$england = 'England';
// Set up keys of an array as pointers to the variables above.
$storage = array();
$storage['fr'] = &$france;
$storage['en'] = &$england;
// Update the variable.
$france = 'Angleterre';
$storage['en'] = 'lolwut';
// Updates the pointer map.
print_r($storage);
echo $england;