Documentation

Dumper
in package

Dumper dumps PHP variables to YAML strings.

Tags
author

Fabien Potencier fabien@symfony.com

final

Table of Contents

Properties

$indentation  : int
The amount of spaces to use for indentation of nested nodes.

Methods

__construct()  : mixed
dump()  : string
Dumps a PHP value to YAML.

Properties

$indentation

The amount of spaces to use for indentation of nested nodes.

protected int $indentation

Methods

__construct()

public __construct([int $indentation = 4 ]) : mixed
Parameters
$indentation : int = 4

dump()

Dumps a PHP value to YAML.

public dump(mixed $input[, int $inline = 0 ][, int $indent = 0 ][, int $flags = 0 ]) : string
Parameters
$input : mixed

The PHP value

$inline : int = 0

The level where you switch to inline YAML

$indent : int = 0

The level of indentation (used internally)

$flags : int = 0

A bit field of Yaml::DUMP_* constants to customize the dumped YAML string

Return values
string

The YAML representation of the PHP value


        
On this page

Search results