I'm looking for a function to dump a multi-dimension array so that the output is valid php code.

Suppose I have the following array:

```
$person = array();
$person['first'] = 'Joe';
$person['last'] = 'Smith';
$person['siblings'] = array('Jane' => 'sister', 'Dan' => 'brother', 'Paul' => 'brother');

```

Now I want to dump the $person variable so the the dump string output, if parsed, will be valid php code that redefines the $person variable.

So doing something like:

```
dump_as_php($person);

```

Will output:

```
$person = array(
    'first'    => 'Joe',
    'last'     => 'Smith',
    'siblings' => array(
        'Jane' => 'sister',
        'Dan'  => 'brother',
        'Paul' => 'brother'
    )
);

```