略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDORow

2025-03-12

The PDORow class

(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 1.0.0)

简介

Represents a row from a result set returned by PDOStatement::fetch() called with PDO_FETCH_LAZY fetch mode.

Objects of this class cannot be instantiated and are not serializable.

The PDORow object allows access to the returned data as if both PDO::FETCH_OBJ and PDO::FETCH_BOTH mode was used. This means that the returned data can be accessed as object properties, and as an array both indexed by the column name and a column offset number.

警告

Accessing an undefined property returns null without emitting a warning.

类摘要

final class PDORow {
/* 属性 */
}

属性

queryString

Query string used by the PDOStatement that returned the PDORow object.

错误/异常

Throws an Error when trying to write to or unset() any property.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/class.pdorow.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3