Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added unix_newlines()
[wfpl.git]
/
basics.php
diff --git
a/basics.php
b/basics.php
index
3a60248
..
72a33a3
100644
(file)
--- 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);
+}
+
+
?>