What does the \\x1a character mean and why does mysql_real_escape_string escape it?
\\x1a
mysql_real_escape_string
From the documentation:
mysql_real_e
\x1A is CTRL+Z control character. It is also EOF marker.