首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 删除从PHP数据类型的资源

删除从PHP数据类型的资源

  • 资源大小:15.05 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php 资源 数据 类型 删除

资 源 简 介

The resource data type was created in PHP 3 to compensate the lack of objects. PHP programmer can not create the resource himself, only some functions return it. Programmer also can not use the resource differently then to pass it to some functions. A more natural concept for resources are objects. Functions returning the resource would be constructors of the objects, functions manipulating with the resource would be methods of these objects. This project replaces the resource data type in PHP by classes. $mysql = MySQL::connect();$result = $mysql->query("SELECT 1");while ($row = $result->fetchAssoc()) { echo $row[1];} php-resource allows to serialize() and var_export() Resource classes which is not possible with plain resources. The library requires PHP 5.3+.

文 件 列 表

php-resource-1.0.1
Resource
tests

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.180375s