Home  >  Article  >  Backend Development  >  How to close an object in php

How to close an object in php

藏色散人
藏色散人Original
2020-09-12 10:05:281798browse

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

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!

Statement:
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