[nycphp-talk] What does this code do?

Scott Mattocks scott at
Mon Mar 3 13:25:59 EST 2008

-- rada -- wrote:
> supposedly converts Windows CRLF  to Unix LF:
> $str =~ s/\r\n/\n/g;

That's not any PHP that I have ever seen (especially if you didn't 
mistakenly leave out the quotes). You might be looking at a bit of Perl 
code there.

Scott Mattocks
Author: Pro PHP-GTK

More information about the talk mailing list