fork download
  1. <?php
  2. $a = new ArrayObject();
  3. $a['b'] = array('c'=>array('d'));
  4. print_r($a);
  5. unset($a['b']['c']);
  6. print_r($a);
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
ArrayObject Object
(
    [b] => Array
        (
            [c] => Array
                (
                    [0] => d
                )

        )

)
ArrayObject Object
(
    [b] => Array
        (
            [c] => Array
                (
                    [0] => d
                )

        )

)