如何将preg_replace转换为preg_replace_callback

时间:2019-09-05 08:09:31

标签: php preg-replace kohana

我对函数preg_replace有问题。此功能ID已弃用。 如何将此代码转换为preg_replace_callback:

preg_replace($search.'e', "'". $this->_quote_replace($this->left_delimiter) . 'php'. "' . str_repeat(\"\n\", substr_count('\\0', \"\n\")) .'". $this->_quote_replace($this->right_delimiter). "'", $source_content);

0 个答案:

没有答案