pg_escape_string escape database dedicated to the sensitive character

(PHP 4 >= 4.2.0, PHP 5)

pg_escape_string -  Escape text / char string type

Explanation

string pg_escape_string ( string $data )

pg_escape_string ()  escape text / char data type string, the string returned escape. This function is recommended to use alternative  addslashes () .

Guess you like

Origin www.cnblogs.com/caicaizi/p/11003107.html