addslashes_gpc( string $gpc )

Adds slashes to escape strings.

Description Description

Slashes will first be removed if magic_quotes_gpc is set, see for more details.

Parameters Parameters


(string) (Required) The string returned from HTTP request data.

Top ↑

Return Return

(string) Returns a string escaped with slashes.

Top ↑

Source Source

File: wp-includes/formatting.php

function addslashes_gpc($gpc) {
	if ( get_magic_quotes_gpc() )
		$gpc = stripslashes($gpc);

	return wp_slash($gpc);

Top ↑

Changelog Changelog

Version Description
0.71 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.