addslashes_gpc( string $gpc )

Adds slashes to escape strings.


Description Description

Slashes will first be removed if magic_quotes_gpc is set, see https://secure.php.net/magic_quotes for more details.


Parameters Parameters

$gpc

(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 ) {
	return wp_slash( $gpc );
}

Top ↑

Changelog 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.