/printr

A lightweight, simple var_dump replacement.

Primary LanguagePHPMIT LicenseMIT

A lightweight, simple var_dump replacement.

$var = array('sample', 10, false, null);
printr($var);

Logo


Installation

  • Install & load the printr.php file
  • May be used as a WordPress mu-plugin (/path-to-wp/wp-content/mu-plugins)

Usage

printr($var, $echo, $context);
Parameter Default Description
$var None The variable to inspect
$echo true Outputs the result (the HTML is also returned as a string)
$context true Outputs the file and line where the function has been called, if available

Changelog

Version Date Notes
1.0.0 September 11, 2015 Initial version

License

This project is released under the MIT License.