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.