Home > Article > Backend Development > How to close an object in php
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.
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!