Zend\Code\Generator\ValueGenerator::escape
Quotes value for PHP code.
Signature
public function escape(string
$input,
[bool
$quote = true] )
Parameters
$input
— string- Raw string.
$quote
— object- Whether add surrounding quotes or not.
Returns
- string
- PHP-ready code.