外文文献- PHP的优点.docx
《外文文献- PHP的优点.docx》由会员分享,可在线阅读,更多相关《外文文献- PHP的优点.docx(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、外文科技资料翻译英文原文Where PHP Fits InPHP is a scripting language originally designed for producing dynamic web pages. It ha s evolved to include a command line interface capability and can be used in standalone gra phical applications. While PHP was originally created by Rasmus Lerdorf in 1995, the mai n im
2、plementation of PHP is now produced by The PHP Group and serves as the de facto st andard for PHP as there is no formal specification. PHP is free software released under the PHP License, however it is incompatible with the GNU General Public License (GPL), du e to restrictions on the usage of the t
3、enn PHP.PHP is a widely-used general-purpose scripting language that is especially suited for we b development and can be embedded into HTML. It generally nins on a web server, taking PHP code as its input and creating web pages as output. It can be million websites and 1 million web servers.PHP has
4、 hundreds of base functions and thousands more via extensions. These function s are well documented on the PHP site, but unfortunately, the built-in library has a wide va ricty of naming conventions and inconsistencies. PHP cuiTcntly has no functions fbr thread programming.Functions are not first-cl
5、ass functions and can only be referenced by their name-directl y or dynamically by a variable containing the name of the function. User-defined functions can be created at any time without being prototyped. Functions can be defined inside code blocks, permitting a run-time decision as to whether or
6、not a function should be defined. F unction calls must use parentheses, with the exception of zero argument class constructor f unctions called with the PHP new operator, where parentheses are optional. PHP supports quasi-anonymous functions through the create_function() function, although they are
7、not tr ue anonymous functions because anonymous functions are nameless, but functions can onl y be referenced by name, or indirectly through a variable $function_name();, in PHP.PHP gained support fbr first-class functions and closures. True anonymous functions are supported using the following synt
8、ax: function getAdder($x) return function ($y) use ($x) return $x + $y; ;)Sadder = gctAddcr(8); echo $addcr(2); / prints 10Here, getAdder() function creates a closure using parameter $x (keyword use forces g etting variable from context), which, etc. For more details see Lambda functions and closu r
9、es RFC.Basic object-oriented programming functionality was added in PHP 3 and improved in PHP 4. Objecl handling was completely rewritten for PHP 5, expanding the feature set and enhancing pertbnnance. In previous versions of PHP, objects were handled like primit ive types. The drawback of this meth
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文文献- PHP的优点 外文 文献 PHP 优点
限制150内