JavaScript構造PHP函數

  WEB工程師對PHP和JavaScript已經非常瞭解,PHP有一套完整而強大的函數庫,而JavaScript的函數庫則顯得鳳毛麟角,不夠強大。

  無意中發現一個開源的js函數庫“php.js"。用JavaScript來實現PHP的函數。涉及數組,對象,時間,加密,文本等非常多的函數。

 

  官方站點爲:http://phpjs.org/

 

  函數代碼:http://kevin.vanzonneveld.net/techblog/category/php2js/

 

  下載地址:http://phpjs.org/packages/download/308/name:php.default.min.js

 

--------------------華麗的分割線-----------------------

 

  我們也可以加入開源項目,發佈自己的代碼。

 

  添加新函數:http://phpjs.org/unported/index#unported

 

  改進已有函數:http://phpjs.org/functions/index

 

--------------------華麗的分割線-----------------------

 

  以下是已經實現的PHP函數:

Arrays

BCMath Arbitrary Precision Mathematics

Character type checking

Class/Object Information

Classkit

Date and Time

Error Handling and Logging

Filesystem

Function Handling

JavaScript Object Notation

Language & Control Structures

Mail

Mathematical Functions

Miscellaneous Functions

Net Gopher

Network

Object Aggregation/Composition

PHP Options and Information

Program execution Functions

Regular Expressions (Perl-Compatible)

Streams

Strings

URLs

Variable handling

XML Parser

[internal] php.js shared libs

i18n

runkit

xdiff

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章