```
print_r(array('name'=> 'bob', 'age' => 20, 'sex' => 'man'));

```

Then : 

```
Array {
    [name] => bob,
    [age] => 20,
    [sex] => man }

var_dump(array('name' => 'bob', 'age' => 20));

```

will display:

```
array(2) {
    ['name'] => string(3) 'bob'
    ['age'] => int(20) }

```

`var_dump` is perfect to debug and much better than `print_r`. But why `print_r` still exists? or `print_r` has some advantage i don't know