Hi,
I’ve found a site which has created PHP functions in Javascript language!
For example in your Javascript codes you can create an array like this:
and PHP.JS converts it to
Array.prototype.slice.call(arguments);
This is description from
phpjs.org
What’s PHP.JS?
PHP.JS is an open source project in which we try to port PHP functions to JavaScript. By including the PHP.JS library in your own projects, you can use your favorite PHP functions on the client-side.
This convenience may speed up development for PHP developers who are increasingly confronted with client-side technology.
It also offers added functionality for scripting, because JavaScript does not natively support higher-level functions such as: file_get_contents(), mktime(), serialize()
It’s nothing fancy like jQuery, we’re just offering PHP functions, with all of their original flaws and benefits for whomever needs them.
see function list here:
http://phpjs.org/functions/index
AHHP