function addslashes_gpc($gpc) {}

Adds slashes to escape strings.
Slashes will first be removed if magic_quotes_gpc is set, see for more details.


  • string $gpc: The string returned from HTTP request data.

Return values

returns:Returns a string escaped with slashes.

Source code

function addslashes_gpc($gpc) {

	if ( get_magic_quotes_gpc() )

		$gpc = stripslashes($gpc);

	return esc_sql($gpc);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: