ManaPHP\Renderer\Engine\Sword\Compiler::_compileRawEchos PHP Метод

_compileRawEchos() защищенный Метод

Compile the "raw" echo statements.
protected _compileRawEchos ( string $value ) : string
$value string
Результат string
    protected function _compileRawEchos($value)
    {
        $pattern = sprintf('/(@)?%s\\s*(.+?)\\s*%s(\\r?\\n)?/s', $this->_rawTags[0], $this->_rawTags[1]);
        $callback = function ($matches) {
            $whitespace = empty($matches[3]) ? '' : $matches[3];
            return $matches[1] ? substr($matches[0], 1) : '<?php echo ' . $this->_compileEchoDefaults($matches[2]) . '; ?>' . $whitespace;
        };
        return preg_replace_callback($pattern, $callback, $value);
    }