Home > PHP > Function > PostgreSQL > pg_free_result()

pg_free_result()

pg_free_result - Free result memory

Syntax

bool pg_free_result (resource $result)

Arguments

  • result - PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

Description

pg_free_result() frees the memory and data associated with the specified PostgreSQL query result resource.

Version

PHP 4.2.0, 5

Return value

Returns TRUE on success or FALSE on failure.