Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

John Cox's Blog:
Perl to PHP Translation
Jan 09, 2006 @ 06:58:29

John Cox has a pointer today in this new entry on his blog to a handy cheat sheet for converting Perl to PHP.

Robert Kline has a handy little cheat sheet to translate Perl to PHP or vice versa. It's been quite some time since I had written any Perl, besides a quick parser or two. This certainly does the trick for me in getting my thinking correct for the Perl syntax. I would assume Perl hackers would say the same thing when needing to use PHP.

The sheet goes through things like arrays, array split/joins, string comparisons, HTML elements, and MySQL database access. Obviously, it works the other way around too, allowing PHP programmers to get some of the basics of Perl...

tagged: perl translation cheat sheet perl translation cheat sheet

Link: