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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?