2017 © Pedro Peláez
 

library mpr

image

romannowicki/mpr

  • Sunday, April 16, 2017
  • by romannowicki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 375 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % 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

16/04 2017

dev-master

9999999-dev

  Sources   Download

Apache-2.0

16/04 2017

1.0.0

1.0.0.0

  Sources   Download

Apache-2.0

18/02 2015

dev-f1

dev-f1

  Sources   Download