symfony API

sfYamlDumper Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfYamlDumper dumps PHP variables to YAML strings.

Method Summary

  • string dump($input, $inline, $indent)
    Dumps a PHP value to YAML.

Method Details

  • (string) dump ($input, $inline, $indent)

    $input The PHP value
    $inline The level where you switch to inline YAML
    $indent The level o indentation indentation (used internally)

    Dumps a PHP value to YAML.

    returns The YAML representation of the PHP value