分享
分销 收藏 举报 申诉 / 4
播放页_导航下方通栏广告

类型外文文献--PHP的优点.docx

  • 上传人:二***
  • 文档编号:4598246
  • 上传时间:2024-10-03
  • 格式:DOCX
  • 页数:4
  • 大小:12.79KB
  • 下载积分:5 金币
  • 播放页_非在线预览资源立即下载上方广告
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    外文 文献 PHP 优点
    资源描述:
    外文科技资料翻译 英文原文 Where PHP Fits In PHP 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 implementation 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 tenn 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 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-class 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 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 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 syntax: function getAdder($x) { return function ($y) use ($x) { return $x + $y; };) Sadder = gctAddcr(8); echo $addcr(2); // prints "10" Here, 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 res 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 method was that the whole object was copied when a varia ble was assigned or passed as a parameter to a method. In the new approach, objects are re ferenced by handle, and not by value. PHP 5 introduced private and protected member vari ables and methods, along with abstract classes and final classes as well as abstract methods and final methods. It also introduced a standard way of declaring constructors and destruct ors, similar to that of other object-oriented languages such as C++, and a standard exceptio n handling model. Furthermore, PHP 5 added interfaces and allowed fbr multiple interface s to be implemented. There arc special interfaces that allow objects to interact with the runt ime system. Objects implementing ArrayAccess can be used with array syntax and objects implementing Iterator or IteratorAggregate can be used with the fbreach language constni ct. There is no virtual table feature in the engine, so static variables are bound with a name instead of a reference at compile lime. If the developer creates a copy of an object using the reserved word clone, the Zend engi ne will check if a _clone() method has been defined or not. If not, it will call a default —c lonc() which will copy the object's properties. If a _clonc() method is defined, then it will be responsible for setting the necessary properties in the created object. For convenience, t he engine will supply a function that imports the properties of the source object, so that the programmer can start with . 出处:Professional PHP Third Edition Martin ChristopherKarli James Kalbach 中文译文 PHP的优点 PHP是一种脚本语言,最初用于生产动态网页设计。它己开展到包括一个命令 行界面的能力,可以在独立的图形应用程序中使用。 虽然PHP最初由Rasmus Lerdorf创立于1995年,PHP的主要执行现所产生的 PHP集团和PHP的事实上的标准服务,因为没有正式的规范。PHP是PHP的免费软 件许可证下发布的,但它是用GNU通用公共许可证(GPL),由于对长期PHP的使用 限制不相容的。 PHP是一种广泛使用的通用目的脚本语言,特别适合于Web开发,可嵌入到HTML 中。它通常运行在Web服务器上,以它的输入PHP代码和创立作为输出的网页。它 可以部署在大多数网络服务器和几乎所有的操作系统和平台免费的。 函数可以创立在任何时候被原型。函数可以被定义代码块内,允许在运行时决 定是否或不是一个函数应该被定义。函数调用必须使用括号,在无参数的构造函数 与类的PHP新的运营商,在括号是可选的所谓功能异常。PHP支持通过 create_function ()函数类似匿名函数,虽然他们不是真正的匿名函数,因为匿名 函数是无名,但功能只能引用的名称或间接地通过一个变量$ function_name ();, 在PlIPo PHP中获得了一流的功能和封锁的支持。真正的匿名函数支持使用以下语 法:功能getAdder($ x)的(返回函数($ y)的使用($ 乂)的( 返 回X元+ Y元;);)$加法器二getAdder(8); 回声$加法器(2)/ /输出“10” 在这里,get Adder ()函数创立一个封闭使用参数$ X (关键字“,用”势力 越来越变量从上下文),它需要额外的参数$ y,并返回给调用者。这种功能可以 存储,给出了更详细的参数到另一个功能等见lambda函数和关闭变更请求。 基本的面向对象编程功能被添加在PHP 3和PHP 4的改进。[3]对象处理是完 全改写为PHP 5,拓展功能和增强性能。在以前版本的PHP,对象处理方式和原始 类型。这种方法的缺点是,整个对象被复制时,被分配一个变量或作为参数传递到 一个方法。在新方法中,对象引用的处理,而不是价值。PHP 5中引入私有和受 保护的成员变量,随着最后的抽象类和抽象类以及方法和最终方法方法。它还介绍 了申报,如C + +构造函数和析构,类似于其它面向对象语言的标准方法,以及 一个标准的异常处理模型。此外,PHP 5中添加接口和多个接口允许实施。有迹象说明允许对象进行交互运行时系统的特殊接口。对象实施ArrayAccess可以使用数 组语法和对象实施的Iterator或IleralorAggregale可以用在foreach用的语言构 造。有没有在发动机虚拟表功能,因此静态变量约束,而不是在编译时引用的名称。 如果开发人员创立一个对象的副本使用保存字克隆,在Zend引擎将检查一个 -clone ()方法已经定义或没有。如果不是,它会调用默认_clone ()将复制对 象的属性。如果_clone ()方法的定义,那么这将是在设置必要的属性创立的对象 的责任。为方便起见,发动机将提供一个函数,进口源对象,使程序员可以从一个 源对象按值复制,只覆盖属性需要改变的属性。 出处: 作者: Professional PHP Third Edition Martin ChristopherKarli James Kalbach
    展开阅读全文
    提示  咨信网温馨提示:
    1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
    2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
    3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
    4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
    5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
    6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

    开通VIP折扣优惠下载文档

    自信AI创作助手
    关于本文
    本文标题:外文文献--PHP的优点.docx
    链接地址:https://www.zixin.com.cn/doc/4598246.html
    页脚通栏广告

    Copyright ©2010-2026   All Rights Reserved  宁波自信网络信息技术有限公司 版权所有   |  客服电话:0574-28810668    微信客服:咨信网客服    投诉电话:18658249818   

    违法和不良信息举报邮箱:help@zixin.com.cn    文档合作和网站合作邮箱:fuwu@zixin.com.cn    意见反馈和侵权处理邮箱:1219186828@qq.com   | 证照中心

    12321jubao.png12321网络举报中心 电话:010-12321  jubao.png中国互联网举报中心 电话:12377   gongan.png浙公网安备33021202000488号  icp.png浙ICP备2021020529号-1 浙B2-20240490   


    关注我们 :微信公众号  抖音  微博  LOFTER               

    自信网络  |  ZixinNetwork