pg_affected_rows
Description
int pg_affected_rows ( resource result )pg_affected_rows() returns the number of tuples (instances/records/rows) affected by INSERT, UPDATE, and DELETE queries.
Note: This function used to be called pg_cmdtuples().
Parameters
resultPostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
