Tech Note: PHP Functions Ported to Javascript
If you’re a PHP coder who also codes Javascript, here’s an insanely useful site where they’ve converted most of the useful PHP functions into Javascript, keeping the syntax intact: PHP functions in JavaScript.
I’m currently using their versions of base64_decode(), utf8_decode(), addslashes(), and str_replace() in the LGF Javascript codebase, and they work beautifully.