brandonwamboldt/utilphp — pull request #39 by Edin990 (2014-08-01 22:03:59+00:00)
Title: Update util.php

- Added uniqid() fix for object arrays.
- Minified output html code for dumped multilevel array by setting two global js functions, one to handle content collapsing and expanding and other to store and handle images for collapse and expand. If variable doesn't have arrays javascript will not be dumped.
- Adjusted collapse and expand image positions.
- Added possibility of choosing to which level array will be expanded
For example:
util::var_dump($arrayVar,false,3); // to third level
util::var_dump($arrayVar,false,-1); // all levels will be expanded
util::var_dump($arrayVar,false, 0); // all collapsed
util::var_dump($arrayVar,false); or util::var_dump($arrayVar,false,1); // just first level