gpt4 book ai didi

php - PHP 中 PEAR 的用途

转载 作者:行者123 更新时间:2023-12-04 05:31:51 25 4
gpt4 key购买 nike

从上周开始,我刚刚开始进行 PHP 开发。我已经在我的 PC 上安装了 XAMPP。我只想知道几个问题:

  • PHP 文件夹内的 PEAR 文件夹的用途是什么?
  • 如何在 PHP 中实现多态?
  • 最佳答案

    A PEAR package is distributed as a gzipped tar file. Each archive consists of source code written in PHP, usually in an object-oriented style. Many PEAR packages can readily be used by developers as ordinary third party code via simple include statements in PHP. More elegantly, the PEAR package manager which comes with PHP by default may be used to install PEAR packages so that the extra functionality provided by the package appears as an integrated part of the PHP installation. Unlike the Comprehensive Perl Archive Network (CPAN) archives, which PEAR took as its model, PEAR packages do not have implicit dependencies so that a package's placement in the PEAR package tree does not relate to code dependencies. Rather, PEAR packages must explicitly declare all dependencies on other PEAR packages.

    The PEAR base classes contain code for simulating object-oriented destructors and consistent error-handling. Packages exist for many basic PHP functions including authentication, caching, database access, encryption, configuration, HTML, web services and XML.



    http://en.wikipedia.org/wiki/PEAR

    关于php - PHP 中 PEAR 的用途,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12475152/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com