X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=basics.php;fp=basics.php;h=72a33a318307c5ba5417efdbc9634c7ba7a61306;hb=d1bbd5843ff6f2c6911aa7f7d15067504b6f0ca0;hp=3a602486bca9f4a094e1f58d05244d3305370f71;hpb=ed24e4f9ececaa1b5cd4e68045f27956ebbb1938;p=wfpl.git diff --git a/basics.php b/basics.php index 3a60248..72a33a3 100644 --- a/basics.php +++ b/basics.php @@ -10,4 +10,10 @@ function read_whole_file($name) { return $temp; } +function unix_newlines($str) { + $str = str_replace("\r\n", "\n", $str); + return str_replace("\r", "\n", $str); +} + + ?>