Methods |
public
static
|
requiresDoubleQuoting(string $value): bool
Determines if a PHP value would require double quoting in YAML.
Determines if a PHP value would require double quoting in YAML.
Parameters
Returns
True if the value would require double quotes
|
#
|
public
static
|
escapeWithDoubleQuotes(string $value): string
Escapes and surrounds a PHP value with double quotes.
Escapes and surrounds a PHP value with double quotes.
Parameters
Returns
The quoted, escaped string
|
#
|
public
static
|
requiresSingleQuoting(string $value): bool
Determines if a PHP value would require single quoting in YAML.
Determines if a PHP value would require single quoting in YAML.
Parameters
Returns
True if the value would require single quotes
|
#
|
public
static
|
escapeWithSingleQuotes(string $value): string
Escapes and surrounds a PHP value with single quotes.
Escapes and surrounds a PHP value with single quotes.
Parameters
Returns
The quoted, escaped string
|
#
|