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

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

删除从PHP数据类型的资源

  • 资源大小:15.05 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分: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
  • liqing71718 2小时前 成为了本站会员

  • 伟国 3小时前 成为了本站会员

  • songy 5小时前 成为了本站会员

  • 纯色幽默 6小时前 成为了本站会员

  • odd? 8小时前 成为了本站会员

  • 52JOY... 14小时前 成为了本站会员

  • Sirius 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 额ヽ(  ̄д ̄;)ノ 1天前 成为了本站会员

  • xxx 2天前 成为了本站会员

0.191861s