选择语言 :

 Core_Email::_remove_nl_callback

Strip line-breaks via callback

string Core_Email::_remove_nl_callback( )
返回值
  • string
File: ./core/classes/email.class.php
protected function _remove_nl_callback($matches)
{
    if (strpos($matches[1], "\r") !== false || strpos($matches[1], "\n") !== false)
    {
        $matches[1] = str_replace(array("\r\n", "\r", "\n"), '', $matches[1]);
    }

    return $matches[1];
}