JavaScript使用PHP函数 PHP extensions in JavaScript

php.js

php.js is an open source project that brings high-level PHP functions to low-level JavaScript platforms such as web browsers, browser extensions ( Mozilla/Firefox, Chrome ), AIR, and SSJS engines like V8 ( Node.js, v8cgi ), Rhino, and SpiderMonkey ( CouchDB )

If you want to perform high-level operations on these platforms, you probably need to write JS that combines its lower-level functions and build it up until you have something useful like: strip_tags(), strtotime(), number_format(), wordwrap().

全版下载:php.full.min.js

xml

xdiff

var

url

strings

pcre

network

net-gopher

misc

math

json

info

i18n

funchand

filesystem

exec

datetime

ctype

bc

array


主页:http://locutus.io/php/

本文: JavaScript使用PHP函数 PHP extensions in JavaScript