Search found 1 match

by marc
Thu Jul 24, 2003 5:41 am
Forum: PHP - Code
Topic: line break stripping in php for javascript
Replies: 7
Views: 788

file("blog.txt"); the file() function reads a file into an array of strings but the \r\n are left at the end of each line so your $fileContents[$i] content an \r\n Note: if working on unix like system only a \n is added at each line end So you have to put off the 2 caracters \r\n ( or only...