For a from my perspective as C++/3D/multimedia/game/whatever programmer quite unusual project (will be released and announced here in a few weeks), I recently wrote a lot of
PHP code. Although I became quite familiar with PHP during the last 8 years (my last bigger PHP related work was the game server of
ds for example), this time it was a rather intensive experience, and I got to know a lot of the dark secrets and the impressive ugliness of this language.
Thousands of functions in the global scope, all with a different naming scheme, most of them doing the same as other functions, no real unicode support, dangerous side effects of its dynamic typing and ridiculous 'features' like this magic_quotes thing which escapes all content from a external variable sources. Funny are also some of the error messages: the programmer of the parser behind PHP obviously used hebrew for the names of some of the constants, and so PHP would write things like 'unexpected T_PAAMAYIM_NEKUDOTAYIM' which is really quite helpful. :)
But after all, the project is finished now and it was fun and interesting. Looking forward to announce the release of it, because recently quite a lot of the stuff I'm working on is secret an NDA-protected unfortunately.
e.g. ruby, a great language imo.