3 ms·
Hm, this has the same name as another project (one which is very popular): http://phpjs.org/ http://phpjs.org/ This php.js is very useful as it implements a nu
by kaolinite 14y ago
Hm, this has the same name as another project (one which is very popular): http://phpjs.org/ http://phpjs.org/
This php.js is very useful as it implements a number of functions that JS is missing.
- dutchbrit 14y agoIndeed, been using php.js for quite a while here now. Will give this other one a shot later on though, see how they compare to one another.
- jlogsdon 14y agoI don't think they are comparable. The one linked by toni[1] takes PHP code and compiles it for running in Javascript; the one linked by kaolinite[2] is a translation of some PHP methods into pure Javascript. [1] http://phpjs.hertzen.com/ http://phpjs.hertzen.com/ [2] http://phpjs.org/ http://phpjs.org/
- wilmoore 14y agoOne of the problems I have with that project is that none of the functions are namespaced or sandboxed (i.e. all global); but then again, it is emulating PHP, so there you go :)