Inline (Component\Yaml)
Symfony\Component\Yaml\Inline
class Inline
Inline implements a YAML parser/dumper for the YAML inline syntax.
Constants
REGEX_QUOTED_STRING |
Methods
static array | parse(string $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false, array $references = array()) Converts a YAML string to a PHP array. | |
static string | dump(mixed $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false) Dumps a given PHP variable to a YAML string. | |
static string | parseScalar(string $scalar, string $delimiters = null, array $stringDelimiters = array('"', '\''), int $i, bool $evaluate = true, array $references = array()) Parses a scalar to a YAML string. |
Details
static public array parse(string $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false, array $references = array())
Converts a YAML string to a PHP array.
static public string dump(mixed $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false)
Dumps a given PHP variable to a YAML string.
static public string parseScalar(string $scalar, string $delimiters = null, array $stringDelimiters = array('"', '\''), int $i, bool $evaluate = true, array $references = array())
Parses a scalar to a YAML string.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Yaml/Inline.html