Is there PHP mysql_real_escape_string for postgresql? if yes then how ? please Give the Examples? & also the work of this string
You have both pg_escape_string and pg_escape_bytea available.
pg_escape_string
pg_escape_bytea