digitalnature / php-ref

A better alternative to print_r / var_dump
347 stars 59 forks source link

Wrong nesting #15

Closed filsav closed 10 years ago

filsav commented 11 years ago

php-ref produces wrong html for this code:

$a = array(
    'key1' => array('subkey' => array(array("1","2"))),
    'key2' => '3',
);
r($a);

You can see key2 => 3 falls out of scope. Thus rt($a) seems to work correctly.

digitalnature commented 10 years ago

That is weird because the markup is correctly nested. It appears that there are some limitations on the <b> tag. Changing it to <span> fixed it, but it will also increase the size of the HTML (noticeable on large queries)