henderjon / drop
a simple function to inspect things
Fund package maintenance!
www.buymeacoffee.com/henderjon
www.paypal.me/henderjon/10
henderjon
Installs: 1 351
Dependents: 16
Suggesters: 2
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: ~4.0
README
drop is a simple function to inspect one or more variables in a PHP script and halt execution of that script. When debugging, I've found it helpful to simply kill a script and expose the actual type/contents or a var.
Peruse the tests or, if present, the examples directory to see usage.
drop
has two incarnations. drop()
uses var_dump()
and dropv()
uses
print_r()
. The main difference is that dropv
will give you the full value of
each arg where drop
will give you the ellipsis on long values.