Login   Register  
PHP Classes
elePHPant
Icontem

dump_r: Display values of variables

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (45)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-08 (5 months ago) RSS 2.0 feedStarStarStarStar 74%Total: 617 This week: 2All time: 4,642 This week: 875Up
Version License PHP version Categories  
dump_r 1.0.0MIT/X Consortium License5.3PHP 5, Debug
Description Author  

This class can display values of variables similarly to the PHP var_dump and print_r functions.

It can show values of scalar variables or arrays or objects formatted in a HTML page using colors to denote different types of values.

Objects and arrays can be traversed recursively up to a given depth level.

XML and JSON strings can be displayed as a listing of contained values.

Values that contain objects or arrays may collapse or expand when the user clicks on the values.

Innovation Award  
PHP Programming Innovation award nominee
October 2012
Number 2
PHP has several functions that can display the contents of variables, including complex data structures such as nested arrays or objects.

This class provides a more sophisticated solution that not only can display the data structures on a Web page, but it also shows buttons that you can use to fold and unfold certain data members.

The resulting user interface makes it easier to read and browse complex data structures with many nested member.

Manuel Lemos
Picture of Leon Sorokin
Name: Leon Sorokin <contact>
Classes: 1 package by
Country: United States United States
Age: 114
All time rank: 2676339 in United States United States
Week rank: 756 Up73 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • dump_r_th.png
  Files folder image Files  
File Role Description
Files folder imagelib (1 file)
Files folder imagesrc (2 directories)
Files folder imagetest (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file dump_r.php Class main class file
Accessible without login Image file dump_r.png Data screenshot of output
Accessible without login Plain text file README.md Doc. description

  Files folder image Files  /  lib  
File Role Description
  Plain text file SplClassLoader.php Class Class source

  Files folder image Files  /  src  
File Role Description
Files folder imageassets (2 files)
Files folder imagedump_r (3 files, 2 directories)

  Files folder image Files  /  src  /  assets  
File Role Description
  Accessible without login Plain text file dump_r.css Data Auxiliary data
  Accessible without login Plain text file dump_r.js Data Auxiliary data

  Files folder image Files  /  src  /  dump_r  
File Role Description
Files folder imageRend (10 files, 2 directories)
Files folder imageType (9 files, 2 directories)
  Plain text file Core.php Class Class source
  Plain text file Rend.php Class Class source
  Plain text file Type.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Rend  
File Role Description
Files folder imageResource (1 file)
Files folder imageString (4 files, 1 directory)
  Plain text file Array0.php Class Class source
  Plain text file Boolean.php Class Class source
  Plain text file Float.php Class Class source
  Plain text file Function0.php Class Class source
  Plain text file Integer.php Class Class source
  Plain text file Null.php Class Class source
  Plain text file Object.php Class Class source
  Plain text file Reference.php Class Class source
  Plain text file Resource.php Class Class source
  Plain text file String.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Rend  /  Resource  
File Role Description
  Plain text file Stream.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Rend  /  String  
File Role Description
Files folder imageJSON (2 files)
  Plain text file Datetime.php Class Class source
  Plain text file JSON.php Class Class source
  Plain text file SQL.php Class Class source
  Plain text file XML.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Rend  /  String  /  JSON  
File Role Description
  Plain text file Array0.php Class Class source
  Plain text file Object.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Type  
File Role Description
Files folder imageResource (1 file)
Files folder imageString (4 files, 1 directory)
  Plain text file Array0.php Class Class source
  Plain text file Boolean.php Class Class source
  Plain text file Float.php Class Class source
  Plain text file Function0.php Class Class source
  Plain text file Integer.php Class Class source
  Plain text file Null.php Class Class source
  Plain text file Object.php Class Class source
  Plain text file Resource.php Class Class source
  Plain text file String.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Type  /  Resource  
File Role Description
  Plain text file Stream.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Type  /  String  
File Role Description
Files folder imageJSON (2 files)
  Plain text file Datetime.php Class Class source
  Plain text file JSON.php Class Class source
  Plain text file SQL.php Class Class source
  Plain text file XML.php Class Class source

  Files folder image Files  /  src  /  dump_r  /  Type  /  String  /  JSON  
File Role Description
  Plain text file Array0.php Class Class source
  Plain text file Object.php Class Class source

  Files folder image Files  /  test  
File Role Description
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file obj.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%Total:617All time:4,642
 This week:2This week:875Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:74%StarStarStarStar
Rank:70