Home > PHP > Function > PostgreSQL > pg_unescape_bytea()

pg_unescape_bytea()

pg_unescape_bytea - Unescape binary for bytea type

Syntax

string pg_unescape_bytea (string $data)

Arguments

  • data - A string containing PostgreSQL bytea data to be converted into a PHP binary string.

Description

pg_unescape_bytea() unescapes PostgreSQL bytea data values. It returns the unescaped string, possibly containing binary data.

Version

PHP 4.3.0, 5

Return value

A string containing the unescaped data.