Home > Backend Development > PHP Problem > How to close an object in php

How to close an object in php

藏色散人
Release: 2023-03-05 21:18:01
Original
1855 people have browsed it

In PHP, you can use the "pg_lo_close" function to close a large object. The syntax is "pg_lo_close (resource $large_object): bool". The parameter "large_object" is the resource number returned by the function.

How to close an object in php

Recommended: "PHP Video Tutorial"

pg_lo_close

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

pg_lo_close — Close a large object

Description

pg_lo_close ( resource $large_object ) : bool
Copy after login

pg_lo_close() Closes a large object. The parameter large_object is the resource number returned by the pg_lo_open() function.

To use the large object (lo) interface, you need to place it in a transaction block.

Note:

The previous name of this function was pg_loclose().

See pg_lo_open(), pg_lo_create() and pg_lo_import().

The above is the detailed content of How to close an object in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template