2017 © Pedro Peláez
 

library mpr

Prints human-readable information about a variable

image

clean/mpr

Prints human-readable information about a variable

  • Tuesday, April 25, 2017
  • by romannowicki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

mpr

My print_r - debug function, (*1)

Prints human-readable information about a variable, (*2)

Installation

via Composer, (*3)

Example of Usage

Dump variable and continue, (*4)

mpr($variable);

Dump variable and exit, (*5)

mpr($variable, 1);

When second parameter given you will get information from which file mpr was called, (*6)

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"

The Versions

25/04 2017

dev-master

9999999-dev

Prints human-readable information about a variable

  Sources   Download

MIT

debug print_r trace

16/04 2017

1.0.0

1.0.0.0

  Sources   Download

Apache-2.0