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.

  • 所有者: DukeOfMarshall/PHP-Array-Heirarchy-Display
  • 平台:
  • 许可证: GNU General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者DukeOfMarshall/PHP-Array-Heirarchy-Display
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证GNU General Public License v3.0
所有者活动
创建于2014-03-07 17:17:58
推送于2014-03-11 17:26:14
最后一次提交2014-03-11 13:26:13
发布数0
用户参与
星数6
关注者数2
派生数1
提交数14
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?