Porting PHP to JavaScript
by Cal Evans (editor)
|
7 comments | Thursday, January 3, 2008
Kevin van Zonneveld has a great series of posts and JavaScript code snippets that give you JavaScript equivalents of some of his favorite PHP. The good news is there is some useful code here, the bad news is that the JavaScript code doesn’t support namespaces.
So far has has posted the following:
So if you work extensively with PHP and JavaScript, you will want to check out this series of short posts.

Comments
And though indeed it is a hobby, functions like base64_decode, wordwrap, stripslashes, ucwords, md5, may all come in quite useful when developing applications with a lot of client/server interaction. Because a lot of server side intelligence can be ported to client side more easily, and with high traffic sites, that will definitely save you some volume & hardware.
But hey, nobody is ordering anybody to contribute or even use it, but my guess is plenty developers will enjoy the final result of this project.
thanks for the work. i wrote a short html_entity_decode() function but i cant find where to contribute.
Not anymore. It's just been announced that from now on PHP.JS will support namespaces.
http://kevin.vanzonneveld.net/techblog/article/phpjs_namespaced/
Just wanted to share that with you!