Overview

Packages

  • Yaml

Classes

  • Horde_Yaml
  • Horde_Yaml_Dumper
  • Horde_Yaml_Exception
  • Horde_Yaml_Loader
  • Horde_Yaml_Node
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Yaml_Dumper

Dump PHP data structures to YAML.

Package: Yaml
Category: Horde
Located at Horde/Yaml/Dumper.php
Methods summary
public string
# dump( array|Traversable $value, integer $options = array() )

Dump PHP array to YAML

Dump PHP array to YAML

The dump method, when supplied with an array, will do its best to convert the array into valid YAML.

Options: indent: number of spaces to indent children (default 2) wordwrap: wordwrap column number (default 40)

Parameters

$value
$array PHP array or traversable object
$options
Options for dumping

Returns

string
YAML representation of $value
API documentation generated by ApiGen