PHP-Array-Heirarchy-Display

A quick and simple class to easily display single or multidimensional arrays in a human readable heirarchal form. Even works for PHP objects. Many customizations available to fit your needs.

  • Owner: DukeOfMarshall/PHP-Array-Heirarchy-Display
  • Platform:
  • License:: GNU General Public License v3.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

PHP-Array-Heirarchy-Display

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.

githalytics.com alpha

Donate

PayPal donate button

Example:

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
         } 
      }
   }
}

Main metrics

Overview
Name With OwnerDukeOfMarshall/PHP-Array-Heirarchy-Display
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:GNU General Public License v3.0
所有者活动
Created At2014-03-07 17:17:58
Pushed At2014-03-11 17:26:14
Last Commit At2014-03-11 13:26:13
Release Count0
用户参与
Stargazers Count6
Watchers Count2
Fork Count1
Commits Count14
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private