集合抽象的PHP库.zip

时间:2022-07-31 04:00:33
【文件属性】:
文件名称:集合抽象的PHP库.zip
文件大小:78KB
文件格式:ZIP
更新时间:2022-07-31 04:00:33
类库下载-集合抽象的PHP库 <?php // Copyright (c) Lellys Informática. All rights reserved. See License.txt in the project root for license information. namespace Collections; use Collections\Comparer\NumericKeyComparer; use Collections\Generic\ComparerInterface; use Easy\Generics\EquatableInterface; /**  * Provides the abstract base class for a strongly typed collection.  */ abstract class AbstractCollection implements EquatableInterface {      }随着php使用的广泛,使用不同数据库也是十分常见的。php需要支持更多的数据库连接接口,如果只是通过单一的接口针对单一的数据库进行编写程序,这很大程度上提升了php的复杂度和学习门槛。用于支付的抽象的PHP库的出现就是为了解决这个问题。这为php访问数据库定义了轻量级的、一致性的接口。它提供了一个数据访问抽象层,不管php连接的是什么数据库都可以通过一致的函数执行查询和获取数据。PDO在php5.1发行时开始附带,php之前的版本不支持用于支付的抽象的PHP库特性:(1)灵活性,可以在php运行期间,直接加载新的数据库而不需要在新的数据库使用时,重新设置和编译。(2)面向对象性:通过对象来控制数据库的使用。(3)速度快,由于PDO是用C语言编写且编译进php的,所以比那些用php编写的抽象类快得多。

网友评论