A quick and simple class to easily display single or multidimensional arrays in a human readable heirarchal form. Even works for PHP objects and JSON strings. Many customizations available to fit your needs.
require_once('Arrays.class.php');
$arr_func = new Array_Functions();
$arr_func->display_hierarchy($array);
$arr_func->display_hierarchy($php_object);
$arr_func->display_hierarchy($json);This will output something similar to:
total => 2
page => 1
per_page => 25
data => {
βββ0 => {
ββββββuri => /videos/12341234
ββββββname => video name
ββββββdescription =>
ββββββlink => https://vimeo.com/12341234
ββββββduration => 155
ββββββwidth => 640
ββββββheight => 362
ββββββcreated_time => 2012-02-06T00:59:11+00:00
ββββββmodified_time => 2012-02-09T04:07:32+00:00
ββββββcontent_rating => unrated
ββββββlicense =>
ββββββprivacy => {
βββββββββview => disable
βββββββββembed => whitelist
βββββββββdownload =>
βββββββββadd =>
ββββββ}
ββββββpictures => {
βββββββββ0 => {
ββββββββββββtype => thumbnail
ββββββββββββwidth => 640
ββββββββββββheight => 362
ββββββββββββlink => https://secure-b.vimeocdn.com/ts/555/555/555716572_640.jpg
βββββββββ}
βββββββββ1 => {
ββββββββββββtype => thumbnail
ββββββββββββwidth => 295
ββββββββββββheight => 166
ββββββββββββlink => https://secure-b.vimeocdn.com/ts/555/555/555716572_295.jpg
βββββββββ}
βββββββββ2 => {
ββββββββββββtype => thumbnail
ββββββββββββwidth => 200
ββββββββββββheight => 150
ββββββββββββlink => https://secure-b.vimeocdn.com/ts/555/555/55516572_200.jpg
βββββββββ}
βββββββββ3 => {
ββββββββββββtype => thumbnail
ββββββββββββwidth => 150
ββββββββββββheight => 88
ββββββββββββlink => https://secure-b.vimeocdn.com/ts/555/555/555716572_150.jpg
βββββββββ}
βββββββββ4 => {
ββββββββββββtype => thumbnail
ββββββββββββwidth => 100
ββββββββββββheight => 75
ββββββββββββlink => https://secure-b.vimeocdn.com/ts/555/555/555716572_100.jpg
βββββββββ}
ββββββ}
βββ}
}
