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().

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

相关推荐