JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added unix_newlines()
authorJason Woofenden <jason@vorticies.(none)>
Sun, 10 Dec 2006 10:11:28 +0000 (05:11 -0500)
committerJason Woofenden <jason@vorticies.(none)>
Sun, 10 Dec 2006 10:11:28 +0000 (05:11 -0500)
basics.php

index 3a60248..72a33a3 100644 (file)
@@ -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);
+}
+
+
 ?>