clean/mpr
Prints human-readable information about a variable
Maintainers
1.0.0
2017-04-16 17:56 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
Apache-2.0 5de5c3bdb7b7131db2577d4b4a7274a77bca3b22
This package is auto-updated.
Last update: 2026-06-06 13:05:30 UTC
README
My print_r - debug function
Prints human-readable information about a variable
Installation
via Composer
Example of Usage
Dump variable and continue
mpr($variable);
Dump variable and exit
mpr($variable, 1);
When second parameter given you will get information from which file mpr was called
Who called me: mpr/test.php line 14
Output
Objects
--MPR--Foo Object ( [name] => Foo [data:protected] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) )
Array
--MPR--Array ( [x] => Hello [y] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) [z] => stdClass Object ( [0] => a [1] => b [2] => c ) )
Scalar
--MPR--string(5) "Hello"
