function Escaper::escapeWithDoubleQuotes
Escapes and surrounds a PHP value with double quotes.
Parameters
string $value A PHP value:
1 call to Escaper::escapeWithDoubleQuotes()
- Inline::dump in vendor/
symfony/ yaml/ Inline.php - Dumps a given PHP variable to a YAML string.
File
-
vendor/
symfony/ yaml/ Escaper.php, line 63
Class
- Escaper
- Escaper encapsulates escaping rules for single and double-quoted YAML strings.
Namespace
Symfony\Component\YamlCode
public static function escapeWithDoubleQuotes(string $value) : string {
return \sprintf('"%s"', str_replace(self::ESCAPEES, self::ESCAPED, $value));
}