Hướng dẫn fetchobject php - fetchobject php
Chuyển đến nội dung chính Trình duyệt này không còn được hỗ trợ nữa. Show Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật. PDOStatement::fetchObject
Trong bài viết nàyDownload PHP driverRetrieves the next row as an object. Syntax
Parameters$class_name: An optional string specifying the name of the class to create. The default is stdClass. $ctor_args: An optional array with arguments to a custom class constructor. Return ValueOn success, returns an object with an instance of the class. Properties map to columns. Returns false on failure. RemarksSupport for PDO was added in version 2.0 of the Microsoft Drivers for PHP for SQL Server. Example
See AlsoPDOStatement Class PDO Phản hồiGửi và xem ý kiến phản hồi dành cho 6 năm trước Ẩn danh ¶ — Fetches the next row and returns it as an object Vegard lkken ¶8 năm trước PDOStatement::fetchObject(?string (Php 5> = 5.1.0, Php 7, Php 8, Pecl PDO> = 0.2.4) Pdostatement :: fetchobject - tìm nạp hàng tiếp theo và trả về nó dưới dạng đối tượngSự mô tảpublicPdostatement :: fetchObject (? chuỗi Thông số |