2017 © Pedro Peláez
 

library dump

image

assouan/dump

  • Monday, April 3, 2017
  • by Assouan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Dump - PHP Function

, (*1)

Dumps information about a variable., (*2)

Installation

Install using composer:, (*3)

$ composer require assouan/dump

Usage

Simple dump:, (*4)

dump($var);

Multiple dump:, (*5)

dump($var1, $var2, $var3);

Example

$fake = [
    'var10' => null,
    'var11' => false,
    'var12' => true,
    'var13' => 123,
    'var14' => 9.99,
    'var15' => 'Hello world!',
    'var21' => [],
    'var22' => [123,456,789,'end',55.99],
    'var31' => fopen(__FILE__, 'r'),
    'var32' => ($tmp = fopen(__FILE__, 'r') AND fclose($tmp)) ? $tmp : $tmp,
    'var41' => new stdClass(),
    'var42' => new DateTime(),
];

dump($fake);

Screenshot

, (*6)

The Versions

03/04 2017

dev-master

9999999-dev

  Sources   Download

The Requires

  • php ^7.0

 

03/04 2017

1.1

1.1.0.0

  Sources   Download

The Requires

  • php ^7.0

 

25/04 2016

1.0

1.0.0.0

  Sources   Download

The Requires

  • php ^7.0