<?php // could be done in one line $str = "a\r\nstring\n"; $str = str_replace(array("\r\n", "\n"), PHP_EOL, $str); echo $str; ?>
You have javascript disabled. You will not be able to edit any code.