如何在网页上显示这些字符?
最佳答案
// An example to replace all newlines with their character equivalent
$value = preg_replace('/[\r\n]+/', '\n', $value);
echo htmlentities($value);
关于PHP - 如何显示\n\0\t\x0B\r,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2289120/