JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added unix_newlines()
[wfpl.git] / 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);
+}
+
+
 ?>