2017 © Pedro Peláez
 

library pprint_r

Pretty Print_r for PHP

image

tobya/pprint_r

Pretty Print_r for PHP

  • Sunday, January 22, 2017
  • by tobya
  • Repository
  • 1 Watchers
  • 1 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

pprint_r

Provides 2 useful functions for debug printing out - pprint_r which outputs a javascript tree of any array that can explored on page. - preprint_r adds a <PRE> tag before output so array can be easily seen. - Great for debugging just include from github using https://rawgit.com/tobya/pprint_r/master/pprint_r.php or copy this, (*1)

Pretty print_r

Have you every wished you had a better way of viewing a very large array?
This very simple function can be called and will display inline an expandable tree of your array., (*2)

Simple Call, (*3)

pprint_r($MyArray);

If you wish execution to end on print then pass a second parameter, (*4)

pprint_r($MyArray,true);

If you wish execution to end on print with an message pass a string as the second parameter, (*5)

pprint_r($MyArray,'Execution ended by pprint_r');

Demo., (*6)

Pre Print_r

preprint_r($Array);

Outputs array with html <PRE> in front of it., (*7)

unprint_r

If you have the text of an array provided by print_r you can use unprint_r to read it and turn it back into an array., (*8)

The Versions

22/01 2017

dev-master

9999999-dev https://github.com/tobya/pprint_r

Pretty Print_r for PHP

  Sources   Download

MIT

log logging output echo print_r prettyprint

17/02 2016

1.1

1.1.0.0 https://github.com/tobya/pprint_r

Pretty Print_r for PHP

  Sources   Download

MIT

log logging output echo print_r prettyprint