NYCPHP Meetup

NYPHP.org

[nycphp-talk] What does this code do?

Scott Mattocks scott at crisscott.com
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
http://www.crisscott.com



More information about the talk mailing list