public static function Escaper::escapeWithDoubleQuotes in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Escaper.php \Symfony\Component\Yaml\Escaper::escapeWithDoubleQuotes()
Escapes and surrounds a PHP value with double quotes.
Parameters
string $value A PHP value:
Return value
string The quoted, escaped string
1 call to Escaper::escapeWithDoubleQuotes()
- Inline::dump in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ Yaml/ Inline.php - Dumps a given PHP variable to a YAML string.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ Yaml/ Escaper.php, line 61
Class
- Escaper
- Escaper encapsulates escaping rules for single and double-quoted YAML strings.
Namespace
Symfony\Component\YamlCode
public static function escapeWithDoubleQuotes($value) {
return sprintf('"%s"', str_replace(self::$escapees, self::$escaped, $value));
}