static | initialize(int $flags, int|null $parsedLineNumber = null, string|null $parsedFilename = null) | |
static mixed | parse(string $value, int $flags, array $references = array()) Converts a YAML string to a PHP value. | |
static string | dump(mixed $value, int $flags) Dumps a given PHP variable to a YAML string. | |
static bool | isHash(array|ArrayObject|stdClass $value) Check if given array is hash or just normal indexed array. | |
static string | parseScalar($scalar, $flags, $delimiters = null, $i, $evaluate = true, $references = array(), $legacyOmittedKeySupport = false) Parses a YAML scalar. | |
static string | evaluateBinaryScalar(string $scalar) | |
static
initialize(int $flags, int|null $parsedLineNumber = null, string|null $parsedFilename = null)
Parameters
int | $flags | |
int|null | $parsedLineNumber | |
string|null | $parsedFilename | |
static mixed
parse(string $value, int $flags, array $references = array())
Converts a YAML string to a PHP value.
Parameters
string | $value | A YAML string |
int | $flags | A bit field of PARSE_* constants to customize the YAML parser behavior |
array | $references | Mapping of variable names to values |
Return Value
Exceptions
static string
dump(mixed $value, int $flags)
Dumps a given PHP variable to a YAML string.
Parameters
mixed | $value | The PHP variable to convert |
int | $flags | A bit field of Yaml::DUMP_* constants to customize the dumped YAML string |
Return Value
string | The YAML string representing the PHP value |
Exceptions
Check if given array is hash or just normal indexed array.
Parameters
Return Value
bool | true if value is hash array, false otherwise |
static string
parseScalar($scalar, $flags, $delimiters = null, $i, $evaluate = true, $references = array(), $legacyOmittedKeySupport = false)
Parses a YAML scalar.
Parameters
| $scalar | |
| $flags | |
| $delimiters | |
| $i | |
| $evaluate | |
| $references | |
| $legacyOmittedKeySupport | |
Return Value
Exceptions
static string
evaluateBinaryScalar(string $scalar)
Parameters
Return Value