dump_r()

html (default)

/usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/index.php (line 17)

limited pre-expand and recursion

/usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/index.php (line 27)

text-only

/usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/index.php (line 33)
--------------------------------------------------------------------------------------
$obj               { } myObject
  cow_publ           999
  moo_prot           666
  cat_priv           555
  self               {*}
  id                 12345
  name               'test string' 11
  name2              ''
  name3              '0' 1
  name4              'false' 5
  name5              'null' 4
  price              69.95
  address            { }
    street             '111 Any Sreet' 13
    zip                60657
    city               'Chicago' 7
  ref_to_addr        {*}
  kids               [ ] 4
    multiln_str        'Lorem Ipsum is simply 
                        dummy text of the printing
                        and typesetting industry' 74
    0                  'blah' 4
    a                  null
    xxx                { } myObject
      cow_publ           999
      moo_prot           666
      cat_priv           555
      self               {*}
  date_str           '2011-12-13 15:25:03' -2y 8m datetime
  not_date           '123456' 6
  otherSet           [ ]
  moaarSet           [ ] 4 recordset
    0                  { } Account
      name               'john' 4
      active             true
      deposit            531.34
    1                  { } Account
      name               'mary' 4
      active             false
      deposit            95.15
    2                  { } Account
      name               'michael' 7
      active             false
      deposit            12.21
    3                  { } Account
      name               'charles' 7
      active             true
      deposit            1.01
  anothSet           [ ] 4 recordset
    0                  [ ] 3
      abc                'yay!' 4
      def                false
      ghi                152.15
    1                  [ ] 3
      abc                'yay!' 4
      def                true
      ghi                152.15
    2                  [ ] 3
      abc                'yay!' 4
      def                0.01
      ghi                152.15
    3                  [ ] 3
      abc                'yay!' 4
      def                true
      ghi                152.15
  isFull             false
  food               null
  dom                { } DOMDocument
  xml                { } SimpleXMLElement
    moo                'f' 1
    moo2               'g' 1
    sss                '55.9' 4
  afile              < > /usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/obj.php stream
  call_self          {*}
  call_closure       ( ) <closure> closure
  call_inst_meth     ( ) <obj>,myFn instance
  call_static_str    ( ) lib::myFn static
  call_static_arr    ( ) lib,myFn static
  call_static_par    ( ) lib,parent::myFn static
  notfn              'pi' 2
  json_arr_str       '[true,false,null,{"a":"moo","b":false,"c":["hello","world",2.98,null],"d":"75"}]' 4 json array
    0                  true
    1                  false
    2                  null
    3                  { }
      a                  'moo' 3
      b                  false
      c                  [ ] 4
        0                  'hello' 5
        1                  'world' 5
        2                  2.98
        3                  null
      d                  '75' 2
  json_obj_str       '{"a":"moo","b":false,"c":["hello","world",2.98,null],"d":"75"}' json object
    a                  'moo' 3
    b                  false
    c                  [ ] 4
      0                  'hello' 5
      1                  'world' 5
      2                  2.98
      3                  null
    d                  '75' 2
  xml_str            '<?xml version="1.0" encoding="utf-8"?><root><moo attr="myAttribute">f</moo><moo2>g</moo2><sss>55.9</sss></root>' xml
    moo                'f' 1
    moo2               'g' 1
    sss                '55.9' 4
  sql_str            'SELECT 
                        firstname, 
                        lastname, 
                        mooo.blah, 
                        hehe.* 
                      FROM 
                        mytable moo 
                        INNER JOIN othertable hehe ON moo.id = hehe.some_id 
                      WHERE 
                        hehe.name IS NOT NULL 
                        AND moo.xxx = 'berries' 
                      GROUP BY 
                        foo.cookies 
                      ORDER BY 
                        foo.sum, 
                        moo.age DESC 
                      LIMIT 
                        30, 
                        400' 227 sql
  str_trail          'trail space ' 12
  str_lead           ' lead space' 11
  str_bothspc        ' both space ' 12

limited recursion

/usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/index.php (line 40)
--------------------------------------------------------------------------------------
$obj               { } myObject
  cow_publ           999
  moo_prot           666
  cat_priv           555
  self               {*}
  id                 12345
  name               'test string' 11
  name2              ''
  name3              '0' 1
  name4              'false' 5
  name5              'null' 4
  price              69.95
  address            { }
  ref_to_addr        {*}
  kids               [ ] 4
  date_str           '2011-12-13 15:25:03' -2y 8m datetime
  not_date           '123456' 6
  otherSet           [ ]
  moaarSet           [ ] 4 recordset
  anothSet           [ ] 4 recordset
  isFull             false
  food               null
  dom                { } DOMDocument
  xml                { } SimpleXMLElement
  afile              < > /usr/share/nginx/www/o-0.me/www/dump_r/vendor/leeoniya/dump-r/test/obj.php stream
  call_self          {*}
  call_closure       ( ) <closure> closure
  call_inst_meth     ( ) <obj>,myFn instance
  call_static_str    ( ) lib::myFn static
  call_static_arr    ( ) lib,myFn static
  call_static_par    ( ) lib,parent::myFn static
  notfn              'pi' 2
  json_arr_str       '[true,false,null,{"a":"moo","b":false,"c":["hello","world",2.98,null],"d":"75"}]' 4 json array
  json_obj_str       '{"a":"moo","b":false,"c":["hello","world",2.98,null],"d":"75"}' json object
  xml_str            '<?xml version="1.0" encoding="utf-8"?><root><moo attr="myAttribute">f</moo><moo2>g</moo2><sss>55.9</sss></root>' xml
  sql_str            'SELECT 
                        firstname, 
                        lastname, 
                        mooo.blah, 
                        hehe.* 
                      FROM 
                        mytable moo 
                        INNER JOIN othertable hehe ON moo.id = hehe.some_id 
                      WHERE 
                        hehe.name IS NOT NULL 
                        AND moo.xxx = 'berries' 
                      GROUP BY 
                        foo.cookies 
                      ORDER BY 
                        foo.sum, 
                        moo.age DESC 
                      LIMIT 
                        30, 
                        400' 227 sql
  str_trail          'trail space ' 12
  str_lead           ' lead space' 11
  str_bothspc        ' both space ' 12
Fork me on GitHub