Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP bug
$array['value'] = 'Original';
$reference = &$array['value'];
$array_copy = $array;
$array['value'] = 'Changed';
$array_copy['value'] == 'Changed'; // =(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment