Skip to content

Instantly share code, notes, and snippets.

@makasim
Created February 20, 2013 16:39
Show Gist options
  • Save makasim/4996924 to your computer and use it in GitHub Desktop.
Save makasim/4996924 to your computer and use it in GitHub Desktop.
<?php
$internal = new \ArrayObject();
$internal['foo'] = 'foo';
$external = new ArrayObject($internal);
$external['foo'] = 'bar';
var_dump($internal['foo'], $external['foo']);
//какой значение будет в $internal['foo']? foo or bar?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment