Zend - The PHP Company




Code Gallery: magnet


Convert \r\n to \n, can be Global Search & Replace  

Type: code fragment
Added by: magnet
Entered: 29/04/2001
Last modified: 05/12/2000
Rating: - (fewer than 3 votes)
Views: 6602
This code fragment takes a linux path and searches for \r\n into the specified files. It would then replace \r\n with \n. The same logic could be extended to become a global search and replace as the code supports recusring into directories.




Search