<?php $string = "Test\r\nTesting\r\r\nTest test\n\r"; echo str_replace(["\r\n", "\n", "\r"], "\\n", $string);
You have javascript disabled. You will not be able to edit any code.